You appear to suffer from the disorder known as “OCD” ie Obsessive Compulsive Disorder.In this disorder, A person gets various intrusive ideas from which he is not able to get rid off.Thus causing psychological problems leading to various symptoms interfering with his various activities like work.Some of the symptoms you have described in the impairment of the sleep.
Next Steps
Don’t get upset. Many people suffer from OCD but its results are quite good with the psychopharmacological (drugs) and Psychological interventions.There is need to contact a mental health professional.Anti-obsessional drugs and benzodiazepines will help you.Also you should maintain Sleep hygiene…
Health Tips
Early intervention is always better in every disorder.
Take treatment from a mental health professional.