Your boyfriend needs to talk to his doctor and be slowly tapered off of his Xanax. Medical cannabis can help him with some of his symptoms such as anxiety, but it has not been shown to completely prevent seizures. I would strongly suggest being under close medical supervision while tapering. Good luck to both of you.