This could be the subject of an entire series of blog posts. Look up adrenal fatigue; which is a controversial and not medically recognized diagnosis. I basically followed the approach others have outlined.
I didn't take the gingko, black liquorice, and pig adrenal tissue cause that wasn't a thing in 2008. But everything else. Remove toxic people. Quit your crappy job. Remove dreadful stuff from your TODO list. Tea instead of coffee. Sparkling water instead of booze. Sleep a lot. Do yoga. Figure out which foods upset your digestive tract (for me that was dairy and gluten).
Burn out is a real thing and almost every person I know in tech that has been doing it for a while has dealt with burn out.
I hope to write out my thoughts and experiences but I'm wary because I want to be helpful without coming across as a medical professional, a new age guru, or a self-help blogger.