I will try my best to answer your query.
Headache is not the common side effect of laxative use. If you think it is due to laxative avoid it and alter your diet, that will help you.
will be helpful for your headache.
It is always better to consult doctor
before taking any drugs.
Hope my answer will be helpful for you.