It's ok because we don't need 10kg of gold per car battery, with 1.5b vehicles on earth that adds up quickly. Gold is still mostly used for jewelry and investment, its rarity and price aren't really a problem for these, quite the contrary
We're building every EV car to handle every possible EV-only road trip because we can and because it's cool, not because it's actually necessary. We could still eliminate 90%+ of all road emissions instantly with just PHEV's using much smaller batteries, if some sort of lithium shortage made such a thing necessary.
Highest grade copper mines 3-4%
Zinc mines and other base metals sit at 2-3%