No need do charge in-situ, the ships (and ports) already transfer several times the battery volume and weight on berthing quickly . The battery systems could be designed to leverage that .
Fire hazards are there for any fuel, Safety systems evolve to handle them. The environmental impact would be more localized than an oil spill.