https://www.drugs.com/pantoprazole.html
Scroll down to the "side effects" section. The symptoms you are experiencing are documented side effects of the medication you are taking, which can lead to low magnesium, causing these symptoms. You should print these out and discuss with your doc. You may need a magnesium supplement.