Headaches the day after HIIT?

A few times lately, particularly as the weather gets warmer, I've sometimes been getting headaches after finishing a HIIT workout, which lasts into the next day?

What's the best thing to do to prevent this? Is it a case of simply drinking more water, or am I not eating enough? Or is it a sign I pushed myself too far?