I’m not a doctor, but I recognize those meds and can tell you that in the immediate short term, ESPECIALLY your first try… fasting is not going to be good for your anxiety or insomnia.
Long term, maybe, but I don’t think this is a good idea. TALK TO YOUR DOCTOR.