Talk back to your bully. Counter each negative thought with a couple of positive ones.
"i'm so stupid." " No, I'm really smart. I just made a mistake. It's not the end of the world."
Continue to say truthful affirmations about yourself. Trying not to think those negative thoughts doesn't work. You have to counter them and drown them out.