Batteries fortunately do not destroy the raw materials they are made from. So eventually we can stop mining new raw materials once we have built enough batteries. In addition, batteries for cars live a surprising long time - and can be used to stabilize the grid once they diminish in oomf (technical term).