While meditation helps people with a variety of problems, it can be even more helpful for people with chronic pain, not just helping perception of pain, but also tackling other (often comorbid) issues like anxiety.
Here’s a link to a meditation geared toward chronic pain patients:
https://youtu.be/MbHUCBAiX7Y