i recently reached out to my therapist about something very similar i have various compulsions that i can only describe as instantaneous and involuntary tics that come up the moment the intrusive thought sets in like a wall ive been having them in public lately and let me tell you it is not a fun time due to the fact i cant actually control them or see them coming my therapist suggested id try to train myself on minimizing them as much as i can for example if i let out a tiny scream i have to try to get myself to hum a song instead if i shake my arms i have to try to do something less noticeable like closing and opening my hand basically shape them and keeping them in some sort of control as a matter of fact this last tic was a product of just that  it used to be a scratching-face sort of tic but ive been able to reduce it on just arm-shaking with a bit of time and lots of good will   idk if this may help you or that its what youre experiencing just wanted to share with people that might do