If it happens often you may have an anxiety syndrome. It can happen after taking drugs and this may be your wake up call to stop doing drugs. Problems that include pain such as a broken bone
from blood loss
, or appendicitis
can also cause it. /discuss this with your doctor you may need therapy.