Hypnic headache is a rare type of headache. It only occurs when you are sleeping and will cause you to wake up. It is often referred to as 'alarm clock' headache because it happens at the same time several nights of the week. Some people experience it every night.