1. since you are suffering from nervous system problem [nervous excitability] and sleepless night [insomnia], it implies that 'primary thyrotoxicosis' is there.
2. as Graves is the diagnosis which means cause is autoimmune, i.e. exact cause it not known!
3. because excess of thyroxine
causes increased responsiveness to catecholamines which stimulate the RAS [reticular activating system] producing: emotional instability, anxiety, nervousness
, over excitability [jerk episodes], restlessness
thus have an appointment with your Endocrinologist
regarding thyroid function tests
[TFT] for meticulous clinical assessment.
4. both Xanex [alprazolam] and ambien [zolpidem] are used for SHORT term management of anxiety and insomnia, so primary concern should be your thyroid medicine.