Seriously, if sexual health is important to you, dont race bikes competitevly. Virtually all competitive cyclists are impotent from the nerve damage they got from riding bikes hard.
Couple of things could have happened: you could have injured your prostate or irritated it making ejaculation difficult. Also, rigorous biking can damage nerves that supply the pelvis with feeling and control. This can be a temporary or a permanent condition depending on how long you've been biking. I'd suggest staying off the bike completely for a while and see if the nerves recover. Since you've been improving, it sounds like the nerves are healing. But there are cases of permanent ED caused from nerve damage from biking.