I've done it many times, even hot yoga. I also have extensive experience wiring up and decommissioning data centers, involving lots of odd contorting. Yoga felt a lot better for me than contorting my body in odd ways.
Agreed - when you're crawling through a tight attic, staying on the joists and avoiding HVAC ducts, going into weird poses to drive j-box mounting screws or something... it's not about staying in "correct" poses.
Yoga is not a joke. But like other exercises, there are "correct" forms so that you minimize bodily harm.
When you're doing an electrical job, you might have to put your body in strange contortions that don't follow any harm reducing "correct" forms.
If doing Yoga is causing damage to your body, it's because you are doing Yoga incorrectly.