This is the complicated side of building a sustainable future. We know the many benefits of clean energy, and we know renewables need some storage to make them really user friendly to the grid. But, nothing is perfect. Here we see the "dirty side" of battery storage.
Despite this data, the net gain of moving energy local and using storage as part of a microgrid is far better than fossil fuel and the long delivery systems we depend on today.