In my experience, it really helped to talk to my supervisor(s) about what was going on. You’re not the first student that they’ve seen burn out and you’re probably not going to be the last. If you don’t feel like you can talk to your supervisor, find someone else, whether they’re in your department or even at your school’s counselling centre. There are way more people out there who care about you and want to help than you know.
Don’t be afraid to ask for more time, if you need it. It’s better to take a bit longer than to hurt yourself or end up with garbage. You are worth it.
Even if you can’t, for whatever reason, try taking a little bit of time for yourself, where you can just do something that you enjoy. For me, it’s sitting down with a cup of tea and watching comedy shows on YouTube with no guilt about what I could/should be doing.
Just hang in there. You can do it.
I saw someone just leave and never come back 1 month before finishing his MSc thesis. We never heard from him again. His supervisor (notorious for his high expectations from his grad students) even tried reaching out, telling the student that he’d never have to talk to him again, but there was no response.
“If you’re going through hell, don’t stop.” You will finish this. You can do it.
(I apologize for the disorganization/terrible writing, this is what I get for trying to write while on NyQuil, after staying up all night.)