I have OCD also known as Obsessive–compulsive disorder, I really have to have things perfect all the time. 
Did you talk to a doctor? I've heard that OCD's cause is unknown, but there may be some factors that cause it.