Try going into this situation with a different mentality completely from last year. Try believing that this is a new school and that you won’t even have panic attacks. Try your hardest to believe that! and I swear some of that will manifest and you will do better. Also, give yourself some credit - starting at a new school by itself can give people panic attacks. Ease into it. Try different things to combat your in-class anxiety: bathroom breaks to go calm down, bring something tactile with you to class, like a kneaded eraser, or even one of those little mind-bender puzzle things. something you can put energy into, basically. When i felt anxious in class I would bring a small notebook that I could just free-write in. they usually sounded like: “i am in math class and I cannot stop shaking, i wish i could just close my eyes without the teacher noticing, i wonder why, probably from that cup of coffee I had, oh well… only 3 hours until i get to go home, i can do this”
hope this helps.