You are going to make mistakes.
Fix them when possible.
Learn from them so as to avoid repetition.
Handle any consequences as well as you can.
Rumination and self-criticism don't present any other options.
They will only make you miserable.
What good is beating yourself up?
You’ve got this.