The batteries should last 15-20 years in most cases, and they can be recycled to recover the materials.
At the moment just about 5% can be recycled, but it cost too much, so they are just sent to third world countries and simply dumped in landfills, poisoning the environment, because it is more cheap. Yes, of course they said that they recycle it and get money for that recycle from government, but in reality this is lie. You can find evidence on youtube.
So called "green technology" is actually worldwide corruption schemes to steal money from government budgets under the pretext of subsidies and benefits for "green" companies. They said that they need to increase taxes and utility rates in order to pay more money for protecting environment. But in reality they take money from citizens and give it to the oligarchs and worldwide private corporations who enrich themselves by using governments for their personal purposes. And unfortunately no one can stop it, because government have right to get your money and give it to the oligarchs, and you can't reject it.
This is why solar panels and wind farms are so popular, these "green technology" allows scammers and corrupt officials to rob the citizens with high taxes and tariffs. In reality any engineer realize that solar panels and wind farms cannot provide enough energy for mankind and cannot replace oil, gas and nuclear technology to obtain energy.
For example, current electricity cost price at nuclear power plants is about 0.014 USD per kWh or 14 USD per MWh (this price is taken from official reports). It includes all expenses for nuclear power plant. Just compare it with price which you pay, there is a huge margin due to taxes and earnings for intermediaries due to these "green energy" corruption schemes with solar panels or wind farms...
In some countries government pays 0.00244 USD per kWh or 2.44 USD per MWh to a nuclear power plants, but at the same time government provides guarantee buy at 50 times more expensive price from these "green energy" private companies who produce electricity with solar panels and wind farms. All expenses are covered from citizens taxes and utility rate. This example shows why "green energy" is very interesting for government officials...
I think the same story with EV... It looks cool, but it hides too many issues which mankind will realize 15-20 years later, when these spent batteries create a real problem for Earth environment... But at the moment it allows some enterprising people to make money on it with help of government, because this technology is actually too expensive
The only technology which can provide mankind with enough energy at a cheap price is a nuclear technology, such as nuclear power plants.
There is also thermonuclear fusion talks, but it looks like scam, the same as "green technology", because they spend a lot of money on research, but for many years there are no results in this area. So, it looks that they doing such research just to get more money from government...