is there not a test to prove asthma ? I think there might be, but regardless if you are struggling to breath mid way through a race, maybe you should withdraw just as you would if you came off your bike and broke your collar bone.
If it keeps happening, maybe you are not suited to being a pro cyclist just like the 99% of other people who for various genetic reasons will never be a elite athlete.