School gives me anxiety

Sometimes going to school gives me anxiety and going to class makes me anxious. I’ve also been doing well in my classes but now I have the pressure to keep it up and I got my first bad grade of the school year (like I failed a quiz) and Imreally beating myself up for it. I’m really worried my professors are going to think I’m stupid