Thanks for writing your query.
It is a normal phenomenon that less sleep can result in headaches
But, if the headache is single sided, it can be due to Migraine
headaches which can be triggered by less sleep, in addition to many other factors.
You should sleep at least 7-8 hours for a healthy body.
will be helpful.
I hope this is helpful to you.