I have had anxiety since I was a teen, and had at breakdown at 27 with a diagnosis saying I also had depression. I treated it with CBT and medication, group sessions and exercise. This year (now 31) I came off my bike and messed my leg up, I couldn’t ride or box for a month or so and I felt like absolute shit, doctor sent me for counselling again and I recognised the signs I was becoming depressed as a result of not exercising. My anxiety levels were getting high and I wasn’t leaving the house, just lying in bed waiting for the constant fear to pass or I got so worried I passed out. Built myself back up mentally and keep that anxiety locked away with my cycling and boxing. I don’t know if that info is of any help but think there may be some relevance so posted.
Good luck with your studies OP.