Hi,
I read your query and can understand your concern regarding your symptoms. Your problem of repeatedly having doubts that you haven't done a thing properly and then repeatedly checking it again and again suggest that you are having obsessions and compulsions respectively.
As rightly mentioned by you, It is termed
OCD (
obsessive compulsive disorder). However, it is not die to any memory impairment. It is an independent disorder on its own which is characterised by obsessions. In addition to doubts and repeated checking, a person of OCD can also have other symptoms like repeated thoughts of being dirty and repeated washing and cleaning, fear of harm, sexual or religious obsessions, etc.
You should seek a psychiatric consultation immediately as without treatment, your symptoms can only get worse. You would need treatment with medication like
fluvoxamine which will also help with your depressive symptoms. In addition, treatment with
psychotherapy in form of exposure and response prevention would also help. It consists of regular sessions focusing on relaxation and behavioural changes.
Hope this information was helpful. Best wishes.