I agree that it sounds like textbook OCD but don't forget we're not professionals. It's something to ask a psychiatrist. There IS help for OCD, if that's what it is. There are several medications and therapies that have helped people.
https://iocdf.org/about-ocd/treatment/