I cannot emphasize this enough: if you are having a panic attack about the general state of your life - academics, your job, your relationship with anyone - and it's 9 pm or later, GO TO BED. Don't @ me with your special case objection that willfully misses the point, go the fuck to bed and consider what if anything needs to be done when well-rested and well-fed
I have had more personal crises than is advisable to admit to and so have many of my friends, I guarantee this is coming from extensive experience