High levels of stress, especially brought on suddenly or intensely, can cause retching. Dry heaving can also be a sign of anxiety, especially for people who suffer from mental health conditions.