Let’s be clear: You didn’t mean to do whatever it is that’s triggering the inner voice now berating you. Making mistakes is part of what makes us human, and it’s certainly a byproduct of trying to grow.
So extend yourself the same courtesy you would a student.
Learn from your mistake and move on. You are not your mistake.
Be kind to yourself.