Chronic pain can have a significant impact on mental health, leading to feelings of frustration, anxiety, and depression.