As I understand it, an EV (lithium)battery burns under water because of the oxygen in the water. Dirt is supposed to smother the flames and deprive the fire of oxygen and it then goes out. Unless there is a different cumbustion process at work for EV battery fires.
I don’t think you can deprive the fire from oxygen. It’s built in.