Current Li-ion batteries have numerous issues, but fortunately there are several alternatives too. Bringing a new battery chemistry to production scale hasn’t been easy, but we’re taking small steps like that every year.
We may still need lithium, nickel or manganese in the near future, but the demand for cobalt (per cell) has been decreasing gradually. Who knows which alternative ends up dominating the market after a few decades
Sodium batteries would be a welcome change. Solid state batteries are another interesting technology that looks promising.