An around the world race sail boat ran aground in the Indian Ocean a year or so ago even though they had the best charts and equipment available. On these racing boats, unlike other crew members, the navigators only duty is to navigate and I think worry about weather.
The navigator simply did not zoom down into the electronic chart to see if there were any islands or reefs along their course.

Their sail boat ran into a reef at a good rate of speed. :confused3: Thankfully, no body was killed and the boat was eventually hauled off the reef an repaired.
There was likely a similar incident where a couple were cruising north in the Caribbean sea. The set a course on the autopilot and eventually ran into an island. They both died. The best guess is that they set the course but
did not zoom down into the chart to see the island in their path.
Another guy was sailing solo and set the auto pilot way point off an island. The auto pilot sound an alarm when the vessel came to the way point but the captain was asleep and slept through the alarm. He woke up when the boat hit the island.
I know of more incidents but I think those make the point that while the technology is fairly robust,
there are limitations that need to be understood.