I understand why you don’t want to leave the classroom as much, but you also shouldn’t deny yourself that time to recharge when you need it.
I sometimes struggle with math, and when I had a lot of trouble with a concept I would usually do better if I stepped away for a bit to calm down and then retried. It gives your mind time to process what you were doing so you can think differently about it.
I know that doesn’t work for everyone, but it’s something you could try to see if it helps your comprehension.
_________________
When you hear hoofbeats, think of horses, not zebras. - Dr. Theodore Woodward