Yes, the shocks aren't as immediate if you have the infrastructure set up and you are out of the initial adoption phase. Even things like lithium and silver are limited resources, so getting more out of the ground will eventually face scarcity as energy demand has always increased over the long term.
Lithium is one of the most abundant elements on earth.
Newer battery chemistries don't use lithium.
By the time we use enough energy to run out of all the elements we could make batteries with, we're likely to be at the "cheap asteroid mining" level of technological development.
Abundant doesn't mean unlimited, nor does it mean economical or environmentally friendly to access. The point is that most countries would need to import metals and minerals critical to renewable energy.