The whole problem comes down to the exemption of software from the normal legal obligation to make a product fit for service. That was accepted when we had a small and burgeoning tech industy. where being made responible for customer losses due to negligent programming would bankrupt the industry. It's not accepatable now that those tech companies have grown to be the largest in the world. If the car industry had been allowed off scot-free for selling faulty and dangerous vechicles due to negligent, or roads would be carnage on a monumental scale.
It's time to make companies like Microsoft et al responible for customer losses where the software is cleary unfit for purpose, and demonstrably so. Yes, that will cost the software industry billions upon billions, but it's the only way that the situation will ever improve.