On Virtual Regatta, as at sea, it is important to stay well away from the shore so as not to endanger your boat.
Fortunately, on the game, it's not catastrophic, your boat is simply stopped and won't risk sinking. You can leave at any time. Simply beware when navigating at a safe distance from the edge, and using the most suitable navigation instruments.
For example, using waypoints will allow you to bypass the ribs more safely than with a course programmer (especially if the auto TWA is engaged)
Make sure you take a good margin of safety!