Im terrified to go to my 4th period

Yesterday i got in a altercation with a kid in my class (he was a freshman so im not sure what i expected) but he pissed me off because he kept mocking me and making fun of everything i said and then more people started joining them because i asked them to please shut up. After that i started to have a panic attack so i walked out and said “im not dealing with this” and the teacher repeated to the entire class “shes not dealing with this guys”. I dont know how to describe her tone but it wasnt kind. I had a panic attack in the bathroom and couldnt go back to class and now im terrified. I dont want to deal with all those people looking and judging me. Nor do i want to deal with that teacher. Im just not sure what i could even do in this situation.