There are only a couple of things the ECM can't monitor which could cause behavior like that, the MAF and the fuel supply. Stream the TPS and APP sensors on your scanner when it misbehaves. If the TPS follows the APP normally, then the throttle plate is opening and your problem is most likely fuel starvation. If the APP jumps with the pedal but the TPS doesn't follow, then the ECM is overriding the throttle input and keeping the plate closed, that would indicate an induction issue.