Hello,
Thanks for the query.see if the headache is associated with vomiting ,blurring of vision and worsening with time,ddiagnostic workup would b required. headache is specifically associated with the consumption of sweets ,may be preservative causes allergy ,resulting in headache.
Next Steps
consult a neurologist ,if the complaints are not resolved.