Some medications are supposed to be safe to take while fasting, I can't tell you which ones though you need to find that out from an experienced fasting doctor. There is one that posts regularly and is happy to answer medication questions like this one here:
Don't take amino acids, that is nutrition and will end your fast immediately. Do you know any techniques for handling your anxiety attacks without medication? I can help you with that if you don't.