Imo it’s kinda unavoidable. Humans make mistakes all the time. We could greatly reduce the risk however, if we simply reduced our reliance on independent vehicles. Unfortunately this depends on the place where you live as well but if possible, it would be much safer for the collective majority to bike/walk to areas or use public transport where applicable as it would drop the amount of traffic on the roads