High school was difficult for me too. After the first semester in high school I dropped out and tried an online accredited high school and got my diploma that way. When I was going to high school I was anxious as well and the only thing that made me feel better was knowing that it was only for 7-8 hrs and then I could go home. I would look at the clock and tell myself "only a few hours left!" High school is really hard when you have anxiety. Maybe try to find some techniques to calm yourself down or talk to a therapist? Is homeschooling an option for you? It isn't right for everyone, but it worked well for me. Although there wasn't much social interaction and for outgoing people it can be lonely and hard. Try and look into what your options are and find some self-soothing techniques.
Good luck!