I've done yoga with an excellent teacher for years and never had a problem. One day with a substitute was all it took to put my upper vertebrae in a bad state for two years.
There is wide variation in teacher knowledge and experience. Maybe they should be licensed, or, if you prefer the libertarian approach, caveat emptor.
BTW I am in my 50's, most of the class was 40+ yrs old
On further consideration, I think yoga is best thought of as a sport, rather than a therapy. You risk injury in all sport activities, but you decide it's worth it, not just for the physical benefits but because you enjoy the challenge, it makes you feel good about yourself. Yoga definitely gives benefits that are more than physical, and like almost any physical activity, you have to understand the risks, and especially be very aware of your level of competence to avoid pushing your risk profile dangerously high. The teacher is really a trainer, and should be competent enough not to have you do something that will hurt you. This is hard in a big class; the best teachers constantly remind you to listen to your body, and be aware of your limits.
It should definitely not be used as a replacement for physical therapy, though it can help with general problems such as joint and back stiffness and mild pain.
There is wide variation in teacher knowledge and experience. Maybe they should be licensed, or, if you prefer the libertarian approach, caveat emptor.
BTW I am in my 50's, most of the class was 40+ yrs old