I recommend getting chamomile in a tea ... However, before taking any supplements, talk to your doctor. Supplements may interact with certain medications and have risky side effects.
How you choose to fight your deficiency (or whether you have one for sure) is something you should discuss with your doctor, before you buy a magnesium supplement or any dietary supplement.