i know this conversation is a little dead, but have you considered the possibility that it might be OCD.. obsessive compulsive disorder? It gets its reputation from the stereotype of someone washing their hands a million times a day but it can be any kind of compulsive behaviors (fixing curtains) or obsessive thoughts (thinking about your mistakes).
Some people need behavioural therapy and medication...I seriously doubt that you do. But there are somet things you should probably think about...
You mentioned that it's been going on for a few years... sometimes obsessive/compulsive behavior is triggered by stress, or even feeling like you don't have control over a particular situtation or circumstance in your life. Can you remember anything significant that happened around when you started acting like this? Does it get worse when you're stressed out or under pressure?
I don't mean to go on with the psyco-babble stuff.. but you should consider if your behaviours are a way of a)avoiding something difficult or stressful or b) a way to exercise control.
Like, yea it's easy to say..well just stop trying to be perfect. But it's likely that that is not the entire issue if it's part of an anxiety problem. Depression is thrown around left and right in these topics, but saying like, 'stop being so sad' isn't a viable option.
So think about what might have caused it. If you find however, that you bite your nails, pick your skin, or pull your hair a lot or if you're finding that your 'perfectionism' is interfering with your life.. then you might want to talk to a doctor. xx