the OP was chasing back after being popped on a climb
this is normal racing, just like crosswinds
he was screwed
but reality, everyone wants their own damn race
so we get events with too many categories on course close to each other
this stuff will happen
chalk it up to another experience and move on