Sounds silly, but two things helped me when reconciling after his affair (years later we did divorce, but that’s another story for another day).

1) You wouldn’t keep rewatching a really awful movie, would you? (Think Gigli lol). So why keep rewatching these scenes in your head?

2) When you start to envision those things, picture a big red STOP sign. Sounds silly but it worked.