I had a beagle that was a rescue, had epilepsy, usually triggered by food (If he was not fed on a regular schedule or if he ate too much) and/or fear (primarily of heavy machinery - dump trucks and a tow truck set it off of all things).
All you can do, at the end of the day, is try to manage...