Hello,
If the thoughts are repetitive, irrelevant, not under your control, causing distress so much that its hampering your day to day life then you might have OCD. Similar thoughts can be present in depression or anxiety. Go for a detailed assessment.
Next Steps
Contact nearby Psychiatric clinic or You can contact me for further help.