Maybe try some meditation. When something like that happens, my mind always replays and distorts past events. Try and take some comfort in the fact these thoughts won't happen forever, and they'll go away when they're ready. I think the worst you can do is to push the thoughts away, so just let them be and recognise that thoughts are just thoughts and nothing more