I don’t compete and only know pretty basic gymnastics, but if you did quit I’d suggest you take up dance, which you could still compete in if you’d want to. It requires strength and flexibility and gives you a good workout, without being overly taxing on your body, in contrast to hard tumbling passes . Not mention dance is literal Art. If you did compete in it, you’d have a built in advantage from knowing acro moves aerials which are used a lot in contemporary dance.
If your body is telling you it’s had enough, maybe it has. Gymnastics is amazing, but not worth injuring yourself over. Like you said, coaching is also an option. I hope you make the best choice for yourself!