This can be hard. Real hard.
But you do not have many options.
You cannot change what was.
But you have the ability to acknowledge it.
Acknowledge the occurrence for what it was, a screw up.
Learn the lesson. Move on.
Move on and don’t do it again.