The emotions and the physical body are very intertwined. I found CBT to help me with this, changing my thinking and attitude has helped overall.
I sure hope you can get on a regular schedule with your T, even if that means missing class and having to make the work up later. THIS is important: you are important. More important ,imo, to get yourself squared away or the other stuff won't matter anyway, right?
You can do this