There is a bundle of wires on top of the trans that is prone to chaffing some wires and grounding out. I chased a similar issue for months. Code bouncing between the TB and ACC pedal. Replaced both with GM parts.
Until one night a buddy and I were doing some other work, and that bundle got moved, then the codes werent there and the car wasnt limping a couple key cycles later. We traced it back to a couple of wires being messed up. Dont remember the colors, but at least a starting point.
With a circuit code being in there I would start with checking the wiring.