Lithium-battery production is extremely power-intensive and unforgiving of instability.