Everything is preventable but the heroes forgot how to heroe and make very bad decisions
Welcome to every single movie that's ever been produced. Most things in movies could be prevented if the heroes just made reasonable decisions. But then you wouldn't have a movie, so heroes have to be stupid at just the right moment to make the movie work.