There have been a number of events that were predictable though. The DC10 cargo doors, both Shuttle crashes were due to materials doing what they were not supposed to and a design flaw in the original design which used aluminium in parts that may get overheated if the carbon carbon laminate delaminated on re entry, Ally will burn as we know from the Falklands war.
Then there is the latest case of those modified Boeing 737 max planes where they crammed in larger engines and messed up the performance completely.
Even the 747 had early issues with engines made by Pratt and Witney flaming out, but at least they had four!
There also needs to be, in my view, an ai controlled beacon ejection system on commercial aviation because even with the sophisticated gps and data transfer to satellites, they still cannot find that Malaysian Airliner that went off somewhere and ran out of fuel over the sea.
Unfortunately accidents will always happen. Look at Concorde. That was a number of problems that occurred at once and some really bad luck. The latter will always be a problem, nothing is infallible after all. Brian