Pantoprazole may cause side effects, but it does not seem to cause anxiety. Some people in clinical trials reported headaches while taking pantoprazole. Less than 2% of people in clinical trials also reported depression and vertigo (dizziness). There is some clinical evidence that shows that people with gastroesophageal reflux disease (GERD) sometimes also have anxiety and depression. In one clinical study, pantoprazole and the antidepressant drug amitriptyline were found to be safe and effective in treating people with both GERD and anxiety.