Cheating in relationship

I cheated in my relationship and I don’t know how to go about forgiving myself or letting it go. I think I beat myself up constantly about it. I don’t know how to come up with bridging thoughts or how to process it when it feels so true that I did such a bad thing. I’m stuck in this thought loop and don’t know how to get out.

Unintentional model:
C: Cheating
T: How could I let this happen vs I’m a terrible person
F: ashamed
A: beat myself up
R: Do not move on

Intentional model:
R: Move on, stop beating myself up, self love
A: Forgive myself