How do I stop ruminating about a guy who severely mistreated me? It’s affecting my work and mental health a lot?

How do I stop ruminating about a guy who severely mistreated me? It’s affecting my work and mental health a lot?
Post Opinion