First: electronics can be made very, very, very, very, "safe", but it is expensive and requires competence, experience and skills which are in very short supply on the market.
Second: cars are meant to be cheap, not to be safe; even the standard of automotive safety, the ISO 26262, is the most...