Obviously see a doctor.
I personally cut sugar and wheat last August. I thought I was early menopause, I was getting them weekly and some were getting knock me on my butt bad.
I haven't touched anything other than muscle relaxants when I went through back spasms for a few days in November and once an advil, but I ate a ton of sugar the day before, and figure that triggered a headache.
I always have had a script for toradol for migraines. 8 months, no migraines.