Good advice all around...
I have experienced similar issues and imho... I would...
Completely stop playing until the pain stops...
Then observe what causes you pain whenever you do play, and stop doing it obviously.
Obviously seek medical help from several sources.
and (I suspect this is important) whenever you take a break from playing, and startup
again, pay attention to how long you're able to play without pain. Time it, analyze it, and
that should be your red flag. Rest and refrain from playing once that period improves over time.
It should be a natural and organic process. This is just my opinion... It's a long process, but in tandem with anti-inflammatory medications, rest, and listening to your body, I don't see many alternatives... In fact, sometimes a more experienced player can notice things about your posture you can't...
Pain is your body's way of saying "what on earth are you doing to me?"
I repeat, I'm no doctor, but I've sadly been sat across from a Dr. who was advising cortisone injections, surgery,
and similar procedures... I decided to not play for awhile, and then I listened to my body to tell me when I could. I'm still listening, but there are cats out there playing in their 80's and 90's, I'm sure they've been through similar concerns. They found a way to keep playing and I'm sure you can too...
But, once you do... Your body will remind you if you get too reckless...
Good Luck,
D.