I see this hasn't been concluded...but I will leave this for the P0321 code.
This happened on another car. It started and ran, but would kick itself into Limp in the 3k rpm range. It coded P0321.
What was done in trying to resolve this; G28 Sensor was replaced and still the code. Voltage checked and found OK. Pulled the oil pan and found this;