Sometimes I call myself "stupid". I think it is because I know I did something I regret, and I guess I am trying to punish myself.
Perhaps you could be more gentle with yourself. When you are ready, you could ask, "what did I learn from this?"
Sending you hugs.