原文You don't choose the new target for the spell or ability targeted with Untimely Malfunction's second mode until Untimely Malfunction resolves. You must change the target if possible. However, you can't change the target to an illegal target. If there are no legal targets to choose from, the target isn't changed. It doesn't matter if the original target has somehow become illegal itself.
原文If a spell or ability targets multiple things, you can't target it with Untimely Malfunction's second mode, even if all but one of those targets have become illegal.