Lithium is not an issue for EVs per se, this is often misrepresented by climate denialists .
Lithium is one of the most common elements on Earth's crust (like 30 out out of 250 elements). There is something like several million tons of lithium per person on the planet, and a typical EV battery need 10-15kg.
Furthermore, the lithium is not destroyed in a battery. It is perfectly reasonable and economic to recycle and get nearly 100% of the lithium back again, so we don't need an endless supply.
What we do see is standard supply-demand economics. Before EVs we had plenty of lithium supply. With the rapid rise in EVs the supply could not meet demand until new mining operations were brought online . Now supply is high and many lore lithium deposits have been identified. For example it is estimated that a few deposits in Nevada will easily supply enough lithium ore for the entire US EV fleet and BESS requirements to go 100% renewable energy.
Oil will run out far before lithium is a constraint, in part because burning oil completely removes the resource but lithium batteries are 100% recyclable