Is that an illness by itself? When I search for it, I see phantosmia listed as a symptom. For example Anti-Phospholipid Antibody Syndrome (APS) seems to cause seizures and phantosmia. The same for Burning Mouth Syndrome (BMS) -- links below. [I'm hoping this can be helpful to you, but let me know if you prefer not to chat about this]
https://www.neurology.org/doi/10.1212/WNL.96.15_supplement.1533
Phantosmia and psychogenic non-epileptic seizures in a patient with burning mouth syndrome suffering from severe depression - PMC
Burning mouth syndrome (BMS) is a rare but serious medical condition with important psychiatric comorbidity and specific psychological correlates. ...