was going through something similar. here's my anti burnout protocol thats kept me functional all the way to my current position as founder and CTO of a profitable startup.
1. 1 tablespoon of cold extracted cod liver oil EVERY MORNING
2. 30 min of running 3-4 times a week
3. 2-3 weight lifting sessions every week
4. regular walks.
5. cross train on different intellectually stimulating subjects. doing the same cognitive tasks over and over is like repetive motion on your muscles
6. regularly scheduled "fallow mind time." I set aside an 30 min to an hour everyday to just sit in a chair and let my mind wander. its not meditation. I jsut sit and let my mind drift to whatever it wants.
7. while it should be avoided, in the event that you have to crunch, RESPECT THE COOLDOWN. take downtime after. don't let your nontechnical leads talk you out of it. thinking hard for extended periods of time requires appropriate recovery.
the human brain is a complex system and while we think of our mind as abstract and immaterial, it is in reality a whole lot of physical systems that grow, change and use resources the same way any other physical system in your body does. just like muscles need to recover after a workout to get stronger, so too does your brain after extended periods of deep thinking.