Don't manufacturers do that already?
Take into account the probability of a costly failure, and increase the price to account for it. And compensate victims to a certain extent, but quietly. I suppose they would fight any publicity of such incidents, since that would have a huge impact on sales, I have read a few such stories, and usually they disappear from the news pretty soon, likely because the victim agreed to be quietly compensated. I could be wrong.