I used to be in a similar situation, I won't go into it because I vented about it in an old thread.
In fact, there it is if u want more context
>>>/feels/98310I was both burned out AND clinically depressed. In the end it resulted in me failing a semester of my school year. I'm surprised I failed only one exam, I didn't study at all.
Since the exam I failed was in the second semester I could stay at home until it then. I took almost 6 months off school, did nothing but take my depression meds and hide from my problems with life. Now I'm back to school, I'm taking only 4 classes out of 13 and the workload is very light so it's manageable but I am able to study again as you said for 8 hours non stop, I'm able to focus again. Still not motivated emotionally, but I am physically able to perform.
I wish there was a better cure, but everyone in my life simply told me to "relax"
I didn't even take additional classes in that 6 months period of "rest and relaxation". And ofc I got medicated for depression.