The game over screen isn't a bug - there are random events that happen at sea. That's one of them! The time between the events is long though, so it's possible to not see one during the sailing segments.