Yes, it is ridiculous - confirmed!

I mean that in the nicest possible way, as I think you understand.
The good thing is that a) You are obviously self-aware enough to observe yourself doing this and logically think "Hmm...odd!

" - a very good sign that you are fundamentally of sound mind, and b) You are checking the logic of your thoughts by asking others what they think - another excellent sign of wisdom!
It is a good idea, though, to see a therapist to get this under control sooner rather than later, only because compulsive thoughts/behaviors can seem to develop a life of their own if you don't take the reigns early on, making it harder later.
Good luck