Dear Sir,
I would like to clarify your question first.
Does it means, you are doing it by yourself voluntarily but uncontrollably?
Next Steps
You shoul try some body and mind relaxation exercises and techniques.
Yoga and Pranayam.
If it's not working even after few days then you have to consult a doctor.
Health Tips
Try to avoid this voluntarily.