compulsion
obsession
an irrational motive for performing trivial or repetitive actions, even against your will
her compulsion to wash her hands repeatedly