HUGE MIGRAINE everytime i lay down 😩WHY?

Bee🐝

So every time i lay down and press the back of my head on my pillow (to breastfeed) i get this hugeee headache

Its usually when i have my hair up too

What kind of headache is this and how can i lay down without getting these headaches?