Repetitive thoughts could just be based out of anxiety or may be absurd i.e. may persist beyond relevance and cause individual distress, in which case one may have to consider Obsessive Compulsive Disorder. In any which case, you need to seek a Psychiatric consultation to get rid of these thoughts and focus on other important things.
Next Steps
Please consult a Psychiatrist.