From the brief history and onset with some stressor it points to a psychiatric disorder and appers to be close to a disoder called OCD
and it's treatable . You need to consult a psychiatrist
for the same and you can be absolutely fine after sometime on treatment. Will need treatment for some duration to get releif.