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 breaks the build or drops a production table, we don’t call him stupid. But we might call ourselves stupid. Don’t do that. Talk to yourself at least as politely as you talk to others.