In contrast, primary headache disorders which often occur during nocturnal sleep or upon awakening, such as migraine, cluster headache, chronic paroxysmal hemicrania, and
[doi.org]
A cluster headache typically awakens a person from sleep 1 to 2 hours after going to bed. These nocturnal attacks can be more severe than the daytime attacks.
[my.clevelandclinic.org]
Patients are awakened from sleep by pain paroxysms in about 50 percent of cases, usually within 2 hours of falling asleep (Lance and Anthony, 1971; Hornabrook, 1964).
[clusterheadaches.com]