Honestly the headaches are dependent on several factors.
1. Not enough water while smoking
2. You don't smoke a lot so too much nicotine in your system causes the headaches.
3. You are on an empty stomach
4. You might be using bad quicklights/coals
5. You are not taking breaks in your session