After leaving a cult that employs extensive thought-stopping techniques, a person normally goes through a difficult withdrawal process before they can overcome this addiction.
I sometimes have a compulsion to pray when under stress, when anxious or when sad.