Treating an underlying condition: such as sleep apnea or a mental health problem
Improving sleeping conditions: if sleep deprivation is thought to be a major factor
Medication: drugs are rarely used, but benzodiazepines and serotonin re-uptake inhibitors have found to be useful in some cases11
Dealing with stress: therapy or counseling can help if stress seems to be a factor.