Heck, 18 years ago the US Navy lost a ship, USS LA MOURE COUNTY LST 1194, off Chile.
If I remember correctly, the cause was not shifting the GPS to the local datum that resulted in GPS/chart errors missed by the navigation team while operating the dark and local fog.
"LA MOURE COUNTY was preparing for an amphibious landing, part of the annual UNITAS exercise, and was operating with the Chilean LST VALDIVIA (the former USS SAN BERNARDINO (LST 1189), a sister ship transferred to Chile several years ago). In the darkness and fog, LA MOURE COUNTY drove ashore on small rocky island just off the coast. VALDIVIA pulled her off the rocks and she anchored in Cifuncho Bay to evaluate the damage. Unofficial damage reports indicated massive damage to the hull and destruction of her propulsion systems.
Following the grounding, LA MOURE COUNTY underwent emergency repairs in Cifuncho Bay, to make her seaworthy for the 700 mile tow to Talcahuano, Chile. After getting underway October 28, she arrived at Talcahuano on the 31st, under tow by the Chilean icebreaker OSCAR VIEL TORO. This was her final port, as repairs to her severely damaged hull and machinery were judged to be uneconomical. It was determined that it was more beneficial for the damaged ship to be used as a target for a live fire Sink Exercise (SINKEX) rather than making costly repairs."
From -
https://www.navysite.de/lst/lst1194.htm
Stuff happens....