FWIW, I have asthma and the main trigger for me is riding up steep hills. So I just have to shift down, slow down my cadence and ride the pace that allows me to keep breathing. It means I get dropped on hills, but so be it.

There's no point in beating yourself up over something you can't control.