The thing about indulging compulsions is that in doing so, you give them control. A city with walls is always more difficult to enter than one without.
You know what you need to do (which is walk away from things that inflame your compulsions), because you say as much in these posts. I know it’s not nearly as simple as “just doing it”, but you can’t allow it to walk all over you.
Please show your therapist the post you just wrote, as I think it’s important.