For the past several months I get severe ruminating thoughts of past events at the point where my mind is like "I need to search for the things that cause this stress" in a distressing tone and it's really hurting me

How do I distract myself or even tone it down as much as I can? Most I do is deep breaths when it happens and try to do grounding techniques (Five senses)