My understanding is that plot twists, whether they're in the protagonist's favour or not, are bad writing if they could not have been seen as plausible with prior information (in case this is relevant, do not assume the opposite is true). An example would be the film Contact, where the transport machine is destroyed, only for it to be revealed that they secretly built a second one in Japan. Other examples of this would be twists that involve violations of Knox's 10 Commandments.
Is there a name for plot twists such as these, that are based on information not made available to the audience?