You can take them together within the stipulated limits for each, as one will reduce inflammation and the other will reduce the perception of pain.
Just have to be careful with the stomach when it comes to Ibuprofen... perhaps eat first.
More often used for neuropathy than epilepsy (though used for both, due to how gabapentoids work.)