If you suspect sleep apnea, it's worth considering a wearable that can track your O2 levels through the night. There are some smart watches that can do this, but IMO the very best tracker is the Oura ring as it tracks this plus body temp, sleep stages, heart rate variability (variation in timing between individual beats). I have no signs of apnea, but am considering one, just for self-quantification. If you're only interested in O2 levels, Wellue has one you can wear on your finger or thumb that can be set to vibrate if the level gets low. As a bonus, at $150-ish it's probably the cheapest option, and doesn't require a subscription (which the Oura does).
Back to joints: There's a possibility the issue might be calcium buildup in soft tissues, which can come from being deficient in K2. K1 and K1 are quite different (different side-chain). We get K1 from plants containing chlorophyl, and can convert K1 to K2, but many of us aren't getting enough K1 - and we humans convert K1 to 2 poorly. So consider K2-high foods (pasture raised animals, both meat and milk, pork, or for vegetarians 'natto' which is a fermented soy product) or a supplement. When you get to supplements, you'll see that MK7 (again, a side-chain difference) is supposed to be the best, based on it being detectable in the blood longer. That turns out to be an artifact of how they're packed in the chylomicrons (particles your small intestine uses to package up lipids).
K2 is known to redirect calcium from soft tissue to bone, where it becomes an important part of aerobic metabolism - but that's seriously off-topic. Anyway, there's evidence that K2 can reduce a 'calcium score', which is calcium buildup in the arteries. I'm of mixed opinion as to whether that's good as it might be serving a protective function there - but it does show K2 redistributing already-deposited soft tissue calcium.
Sorry to have gone on so long here, but I'm pretty terrible at brevity (hey, ask my wife:-)