How do you talk to yourself? When our actions lead to bad outcomes, we blame ourselves. That is OK if it leads us to reflect on our behavior and do better next time.
But the language we use when we blame ourselves is sometimes much worse than we would ever use with other people. If a colleague makes a mistake, we don’t call her stupid. But we might call ourselves stupid. Don’t do that. Talk to yourself at least as politely as you talk to others.