I don’t know if this will help or not but if you are tortured by “loop” thinking, I found doing math tables, or any type of math actually, helps me break away from those repetitive thoughts. If the same thought returns I just dive back into equations or counting by 7s or something else depending on how much distraction I need.
Best wishes for an improved spirit. Sending a virtual hug.