I think it's just a "fact of life".
If you ride in the months that stinging/biting insects are flying around... you'll hit one eventually.
Maintain control of the bike and get it safely off of the road as soon as possible. Do the "bee dance" to get the little bugger off of you and then continue on your way. Carry an epi pen if you are allergic.
This is one of the reasons why I always wear some sort of eyeware whenever cycling.