That happens to me in races if I do not warm up enough, and then go out very hard. It takes about 15 mins for my lungs to open up.

I too do high end efforts in training, but I rarely jump on my bike and do them in the first 10 min.

How was your warm up?