Everyone makes mistakes. It is the way we were created.
What happens after the mistake?
We might feel pain from the mistake we made (“Stupid, how did I do that!”). Fear of facing that pain again can deters us from making that mistake in the future. Maybe. When we do this, we are diminishing ourselves, i.e. negatively judging our worth as a human being.