During my teenage years since my seizures were quite active my epileptologist asked me to begin starting a specific dose of Naproxen when my cycle started, during the cycle then so many days after it ended. I can't remember how we had it numbered or the dosage.
What I can say is the Naproxen dosage did have a positive impact on slowing down the seizure activity during the period activity when it took place. It was quite amazing how the Naproxen would work to my benefit; it was like a light switch. I was quite amazed. This is something I would bring up to your epileptologist and ask them to see if they can assist with your situation.
I can only give you my experience as to what took place. I would highly suggest speaking with your specialist before starting anything.