You may be on to something. I drove a BMW that, when the electric window position sensors went bad, the whole car went into limp mode and didn't let you accelerate over a certain speed. I imagine the rationale being out could not verify the windows were not down? Crazy still... the first and only BMW. I should have stuck to old Nissans
Things go wrong on cars, it doesn't mean they're bad as a brand. I loved my BMW. Have a Volvo now and apart from the slightly crap entertainment software I love it. They're replaced the software with carplay in the newer models, and updated older models, but alas they can't update my model due to a hardware mismatch.
It's the cars where things constantly go wrong that you should avoid. Jags + Land Rovers have those reputations in the UK.
It's fine that a window position sensor might eventually fail on a car. It's not fine that a window position sensor causes the car to limit its maximum speed.
It was less that it went wrong, and more that when something small went wrong it became a complex issue due to how the system was built, and how it handled a module failure.
The car was entirely capable of continuing to operate normally, but the operator is not trusted by BMW. Their ecosystem locks out the owner from easily maintaining their car as well, which made even more painful as I had no trouble identifying and sourcing a new module.