I would say part of being truly efficient in any role is being able to do the role efficiently even in less than ideal situations or with less than ideal coworkers.
In my personal experience significantly more people think they don’t react emotionally than actually don’t react emotionally so it’s better to support each other than trying to inefficiently turn into machine together.
In my sad experience, you don’t but simply try to avoid getting caught in the blast radius of it failing. Someone approved/supported the project and someone approved/supported the sunk cost that already went into it. Those people have more power than you and they will not like looking bad due to you.