Proton pump inhibitors may be given to patients with anxiety to relieve the symptoms associated with acid reflux. But long-term use of PPIs may lead to conditions like depression, anxiety, or cognitive deficits, especially in older patients.