First heard of it with people talking about how some influencer was losing a lot of muscle while fasting (Peter Attia, I believe), and someone mentionning it was due to Ozempyc. Then, I checked the litterature, and there are indeed plenty of research showing that.
It would seem you can manage it by having increased activity, which some people like Attia can manage, but the vast majority of fatasses? Once you've lost 20 pounds of muscles at 65, getting them back might be borderline impossible.
The question is, is the muscle loss due to caloric restriction only? If so, being 1 week on it, 3 days off or whatever, would probably entirely remove the problem (same as fasting: fast and feat). Or is worse than that?
Same for bone density, if you're losing both muscle mass and bone density that's really bad, and you need to be on death's door for the benefit to outweight the risk.
If you're using ozempic or the like, I would say monitor your muscle mass, it's inexpensive and easy to do.