with many cases of one failing in flight
This is a can of worms.
Yes, even modern turbofan engines, do on occasion, fail. And that is why
not everyone is allowed to take
any twin engine aircraft and fly
anywhere
Wikipedia has a good article about who can. It basically talks about the ruleset called ETOPS; Extended range twin-engine operations. It should explain why things are as safe as they are.