This is ocd this can be treated by extensive counselling sessions and medication both , patients are taught to control their unwanted thoughts and medicine would help a lot but it's long term therapy so be patience full
Next Steps
consultant a psychiatrist
Health Tips
please ensure proper compliance of treatment