Consumer protections are strong enough to prevent that from happening.
My vehicle of choice for the last 16 years has been the Volvo XC70 which, since it was last manufactured in 2016, only ever had 3G modems, which no longer work. It's luxurious, a great form-factor, safe and reliable, and can be had for less than $10K. The one I'm driving now was the proverbial old lady vehicle. It had only 30,000 miles on it when I bought it three years ago. It could be the last vehicle I ever owned since they're good for 200k miles.
Funny story on my previous XC70. I sell my cars through a classic car restorer that also does consignment sales. The manager there wanted another vehicle, so he made me an offer directly which I accepted. I let them have the vehicle for a few days before the transaction. He called me and asked when the last time I changed the oil was. I said that I have no idea. He said it appears that there's no oil in the engine. That's how robust those old Volvo engines are. He went through with the transaction and is still driving it.
Apologies for the long sales pitch on old vehicles and specifically Volvos, LOL.