Sorry to read about your little fur ball. Having suffered with migraines since I was 12 years old I can relate to your pain. In my case, it worked out that mine is hereditary. My youngest girl also has them.
Do not drive whilst under medication as I am sure your doctor mentioned.