Hello Friend, Good that you are seeking a help here. Advice you not to try medicine on your own especially when you are
pregnant.
First understand the reason for your sleep disorder and headaches. It's may be due to stress or anxiety. Consult a psychology expert directly or online to figure out the reason and suggest a suitable solution.
Reach me online for further evaluation and recommendation.