Learn to forgive yourself. If you mess up, that’s OK. If you keep making the same mistakes, that’s not OK. You need to learn from your mistakes.
Forgive yourself when you mess up because we are all human and we all matter. But if you keep messing up and doing the same thing over and over again, eventually it’s not just a once off. That is a habit that you have formed and you need to get rid of it. Always work to improve yourself.