I totally sympathize with the weight struggle!! I gained a bit of weight last year when taking care of my Mom when she was dying, and between being sad and all the nice people bringing sweets and food over to the house, and due to forced inactivity because of having to be with Mom 24/7, the pounds just piled up. I've lost almost half of it, and trying to get the rest off, but now my litle guy has been so sick with seizures and other health issues that once again I'm homebound and have my days where I just feel really depressed (but I try to run up and down the stairs at our house a lot every day to get exercise and boost seratonin levels). I'm trying to be very good, but the holiday season has its challenges, doesn't it?
I wonder if your increase in seizures isn't so much from the weight gain as from the foods you were eating that caused the weight gain?
For instance, some have found gluten (mostly in wheat products) to be a seizure trigger. If you tend to snack on foods that are wheat based, or include a lot of bread and pasta in your diet, that may be an issue
Also, blood sugar irregularities (either too high or too low) can lead to seizures. Have you had your blood sugar tested recently? A diet high in carbohydrates (plus gaining the weight back) may have put you in a pre-diabetes state which could have triggered more seizures. The good news is that losing even 7% of your body weight can do a lot to get blood sugar back to normal levels (if that is indeed an issue with you).
I've been trying to stick with a low sugar, reduced carb, and high fiber eating plan. Not as strict as the Atkins, because I don't have that sort of will power, so have to do what works for me.