Engine's rpm from noise:
As you see the failure happened in the middle of upshift, could be related to the synchronization of gears selection/de-selection, maybe something went wrong in electronics or hydraulics causing two gears to be engaged at same time, with predictable results.
Then the engine, as already mentioned, suddenly missing resistance from drivetrain freely revved to almost 20k before electronics/driver could react.
But I like to think this was actually caused by the engine that, annoyed of being castrated at 18k limit, wanted to experience at least once the kind of rpm its brother in 2006 was routinely revving at...