Almost 20 years ago I had cerebral malaria and as a result while I was comatose I had a seizure that was diagnosed as epileptic in nature, after I recovered from the malaria I weened myself off the epilepsy medication and was subsequently passed fit to fly, although I never did fly commercially again (varous reasons). So don't give up, where there's a will there's a way.