Be willing to stop punishing yourself for your mistakes. Love yourself for your willingness to learn and grow.
Do you want to be right, or do you want to be happy? Forgive yourself and stop punishing yourself.