Seriously. If you have chronic pain, limits on how much you can walk/move, or both go see a physical therapist.
I have had physical therapy ELIMINATE the following medical and pain problems, solely or in large part:
Lower back pain so severe I could at first not even walk to the bathroom (sciatic)
Foot pain whenever I walked (plantar fasciitis)
Three years of a fucked up ankle that was at times seriously impacting me
Pain when typing (carpal tunnel), at least twice
Widespread nerve damage that caused massive chronic pain and left me housebound for two years
The physical pain/fatigue/other results caused by having to recover from that kind level of pain and inactivity (cough being housebound) for so long
I try not to talk too much about my health on here, for a variety of reasons, but I am being newly reminded of how much basically every single person with chronic pain should be referred to physical therapy imho
If literally nothing else, because being in that much pain for that long causes a lot of inflammation and makes your body get stuck bracing and moving in ways that ALSO cause chronic pain, so that has to be addressed too.
If you don't have access to physical therapy, there are some really good resources, exercises, and videos online that can at least get you started (but be cautious if you can't get assessed in person), but I'm not qualified to vet or recommend any of those.
But if any of this sounds like it might help you, and you can go to physical therapy, please go to physical therapy.
It has been life-changing for me and has (in conjunction with other things) given me huge portions of my quality of life back.