In fact, the ability to withstand pressure is relatively poor.
First of all, when this happens twice, it is in your subconscious that you did something wrong. Then, there may be self-reflection, and you may be afraid that the teacher will say you. At this time, a kind of fear is formed.
Accelerate physiological reactions such as heartbeat.
When you are nervous, you will have a rapid heartbeat, palpitations, numbness and even retching.
Severe causes dizziness, nausea and even coma.
I think you should have more confidence in yourself. It is human nature to make mistakes.
When you are under pressure, you should think of solutions instead of self-criticism.
If you still can't solve the problem, I think you can see psychological counseling.
I'm not saying you're sick, just giving you some better advice.