According to Mary Barra during the recent quarterly earnings call there won't be an issue with battery production.

The first Ultium batter plant will open mid-year in Lordstown, Ohio followed by the Spring Hill Tennessee plant in 2023 and the Lansing Michigan plant in 2024.

There will be a 4th plant announced in the next 6 months on top of that!

Plenty of Batteries
GM will not run short of batteries, Barra says. The first Ultium Cells joint venture plant with LG Energy Solution to make battery cells will open mid-year in Lordstown, Ohio, followed by plant No. 2 in Spring Hill, Tennessee, in 2023, then plant No.3 in Lansing, Michigan, in 2024 and the location of plant No.4 will be announced in the next six months.