<s>[INST] 2 weeks ago I went to the hospital with chest pain and panic attack .  I had panic attack every day for a week  my dr prescribed me a low  doss of Xanax  it has helped with the panic attacks, but sometimes at night my head feels weird like I could have a seizure or something. then last night I was really tired and dose off and woke up because my legs were shaking real bad but when I woke up they quit what do you think this is? [/INST] Hello, Many patients also report nocturnal (night) panic attacks and in a few minorities, panic attacks occur only at night. It is very much likely that what you experienced at night was also a panic attack. You should discuss with your doctor about taking medicines daily if you are taking it only as and when needed. Also instead of Xanax (Alprazolam) which is a short-acting benzodiazepine, you can ask your doctor to prescribe you Clonazepam which is a long acting benzodiazepine and hence can control your symptoms for much longer duration. A low dose of Clonazepam .25 or .5 mg prescribed by your doctor to be taken at night should be helpful in my view. Ideally, if you are experiencing multiple panic attacks which are severe in nature, in that case your doctor should consider the option of starting an SSRI antidepressant like Sertraline or Escitalopram for few months at least. SSRI antidepressants are currently the first line medicines for treating anxiety disorders. Kind regards Vikas </s>