Another thought just occurred to me: could it be that I'm getting too much impact on my hands/arms/shoulders which induces headaches? I've ridden on my trainer for long periods of time during the winter but never had the headache problem.

My frame is made out of aluminum and I did just replace my carbon seatpost with an aluminum one...

I wonder if I should see a bicycle fitter or a doctor first