Anti-Seizure Meds?

so my doctor had me on depakote (used for seizure prevention) for about 2 1/2 months. and it didnt really help my headaches much like we were hoping it would, it didnt seem to be helping anything, so she took me off and put me on flexoril (a muscle relaxer) and since then i have been having horrible muscle spasm and twitches .. much worse then "normal" has anyone else had this happen? i guess what im wondering is if anyone has heard of an anti-seizure medication helping control muscle twitches and spasms...?