This actually sounds like an honest (mis?)diagnosis. Confusing migraine and temporal lobe epilepsy is not a particularly egregious mistake, and the two conditions often occur together. A number of anti-seizure medications are prescribed to prevent migraines.