The ship going completely dark twice means she lost power and was unable to effectively bring it back. She would have had no rudder or thrusters while carrying both a full cargo and presumably heavy fuel load. Meaning she was deep in the water, most susceptible to any kind of current, with no control and massive forward inertia. The question to answer is why the power loss, which I can't begin to guess at right now.
edit:
The container ship, Dali, had been inspected 27 times since its building in 2015, and had two “deficiencies" since then, according to records from the Electronic Quality Shipping Information System (Equasis).
In June of 2023, in San Antonio, Chile, the Chilean authorities gave the Dali a “deficiency” for “propulsion and auxiliary machinery — gauges, thermometers, etc,” according to Equasis records. And, in November of 2016, in Antwerp, Belgium, the Dali was given another “deficiency” for "structural conditions” described as “hull damage impairing seaworthiness," due to it being holed, Equasis records show.
Dali was involved in an incident in 2016 in the Port of Antwerp, port officials confirmed to CNN.
The last inspection the Dali had was on September 9, 2023, when it inspected by the United States Coast Guard in New York, New York, Equasis reports. No deficiencies were noted from that inspection, according to the database.