How do you get rid of a migraine in the middle of the night? The exact cause of hypnic headaches isn’t known, but treatments that may provide relief for some individuals include: Lithium (Lithobid) — a medication used to treat bipolar disorder. Indomethacin (Indocin) — a nonsteroidal anti-inflammatory medication. Caffeine — taken as a tablet or beverage before bedtime.
