Currently 40, started programming at 10. Same thing happens to me from time to time. The latest thing that got me out of that funk was the Audiobook of 7 Habits of Highly Effective People. His narration was important because the book in written form missed helpful inflections he added in the reading.
Now I am working on things that are more aligned with what is important to me, and finding what’s important was hard.