Find alternative activities for your hands: apply fingernail polish to fingernails and toenails, rub lotion all over your body, paint a picture, brush your teeth, pet your cats, bathe your cats
When I am particularly stressed I have similar problems. I know what you mean about it being automatic. It's something that takes no thought and often I don't realize it until I see the effect.