This is a confirmed game-related bug. It is not bound to a single stage, nor to a single database, nor to a single computer and/or user.

The game just freezes with around 2 to 20 km to go. This happens in around 25% of the stages I ride. Multiple people have confirmed this issue.