Doughnuts are fun.
I am glad that you were able to figure out a diet that worked to halt your seizures.
I’ve got a similar issue and solution — I have Menieres Disease and am able to halt my symptoms by avoiding salt. And EVERYTHING has salt in it. (Even donuts!)
So I feel your pain and applaud your (usual) resolve.
I’ve fallen off the wagon myself. But not very often. The consequences are too dire.