Hyperventilation commonly occurs with severe anxiety, acute head injury, pain, and in response to conditions that affect the lung and chest wall, especially those that cause hypoxemia.
Just this week I saw a teenage patient who had been running several miles at track practice, became dizzy, and then had a panic attack. Due to her hyperventilating, she became hypocapnic. Her blood pH levels were high. This eventually led to tissue dysfunction. Her muscles were locked up and she could not move her hands or legs bilaterally. Treatment consists of oxygenation, fluids, and an antianxiety medication.