My mental health is going down a cliff

I was good for 2 years, but somehow obsessions and *** from the past came to my mind again and I can't control it, or maybe I don't want to control it, I don't know what to do.

I've been four days with anxiety and pain, don't know how to solve it. I thought I wouldn't go back to this ***.

If anyone wants to, feel free to tell your experiences in the comments.