Steven Spielberg says the Covid pandemic pushed him to make his new film as he thought it could be an “extinction-level event”.