Welcome to Just Commodores, a site specifically designed for all people who share the same passion as yourself.
My VZ V6 auto does the same. Foot on brake pedal and trans in Drive, bring the revs up and bingo the ecu kills the throttle.
Same thing happens if you rev it up with the trans in Park.
Apparently the alloytech has a 4000rpm limit for neutral and park which is understandable. However the limit in drive seems to be something different. I think it’s what the other guys have said. Torque and Brake management retarding the timing to cut torque to the wheels. Tune should fix it