Can I share my experience …
I cannot match my breathing to the calls of a teacher who is trying to synchronize everybody’s breathing! I used to try and stay in sync with the others in the class by holding my breath or taking 2 breaths where they took one but that’s not a good way to practice. Nor are those classes in general.
If I start breathing unevenly or gasping in that situation, or feeling my breathing is overstressed then I back out of the class and re-establish my equilibrium with full yogic breath or even by doing nothing and just breathing normally.
It may not please the teacher though!
I allow myself the luxury of not controlling my breath during self-practise (there are no yoga police in my house!) and just breathing naturally, through the mouth. In those instances the natural breathing cycle determines the rhythm and intensity of the practice. I try to avoid getting out of breath and maybe long experience has actually conditioned my breathing so that now I don’t have to consciously work at it.
Though I do make sure I AM breathing and not holding my breath (which would weaken me), and I keep my chest as open as possible, releasing any constrictions pressing on the chest.
I give myself a lot of latitude, I am not a machine, I am a feeling responding entity, nature is my guide and my breathing is how I reach for life.