I had that problem by midway through law school. I had panic, too, and would completely freak out. Unfortunately, I couldn’t solve it, and I had to drop out.
In my country people who have a difficulties, like having a mental problem can get appointed someone to help motivate them through studies, kind of like a personal coach, only it’s studies instead of training.
I also sometimes struggle. I stare at the screen and then decide to go smoke. I need concentration. Don’t give up though. You should do it and inspire more of us to get it right.
I have something similar with practicing guitar. I’ll have everything set up, power on, plugged in, and my mind says “aw man, you SUCK, besides, remember that phone call you need to make…” and so much for practice.
I also play guitar, but I struggle with a trigger of thoughts that tell me that the song is given to me by a spirit that is evil, then I start talking to the spirit to find out where the songs I create come from. It’s messed up, like fighting imaginary friends.
I did my BA and half of law school, plus graduate film and screenwriting classes while completely unmedicated with SZA/bipolar, so it IS possible, like @Jonathan2 said. I agree.
There were times when I could only do one class or two classes at a time, and it took me 8 years to get my BA, but I did it.
Just take it a little at a time, and schedule LOTS of breaks. That’s how I get things done.