Perhaps you are suffering from obsessive thoughts. Ask a psychiatrist for diagnosis and treatment. Obsessive Compulsive Disorder (OCD) is mainly genetic and has less to do with upbringing or traumatc events in your life.
Read the articles under the heading Obsessive Compulsive Disorder in this list of articles.
Read more about non-constructive thoughts.