Many medications are used for illnesses and problems unrelated to their original purpose. In cases of chronic lower back pain, for example, doctors have found that some antidepressants and some antiepileptics are useful in reducing pain, although they don’t really understand how or why.
If your doctor feels that the medication you are taking now is helping you and not harming you, there is likely no reason to worry. Any side effects that you could experience would be side effects that someone with seizures may get. The medication itself shouldn’t cause problems, such as seizures.