Internal combustion engines in standard small size convert 19.65-22.1% of their energy from thermal to kinetic.
The ratio of electron throughput from battery to electric motor can be as LOW as 88% but hovers between 92-98% efficiency.
Even if you had a fuel cell in the back, running electric motors quintuples (5×) the standard energy efficiency owing to the principle of energy quality type preservation in conversion (High to High vs Low to High):
Jevon's Paradox states that improved efficiency of something will only increase its use, and in this case, electric cars will in fact, correlate to car use, and increased mineral demands.
This is a problem you cannot solve endemic to humanity.