It sounds like it could be a Reynold's Phenomenon. I suggest you seek help from a medical professional because this can get worse if left untreated.
It either has something to do with the nerves in your hands, the connective tissue, your lungs, or low oxygen saturation. Seek help.
In the mean-time, you can reduce the pain duration of an attack by putting on gloves/mittens and massaging the hand(s)
Try to stay away from sudden temperature changes. Also try to stay away from stressful situations. Good luck!