If you can datalog, you should also be able to look up the P1127 (in LiveLink, Ctrl+T).
Odds are it's a wiring issue with the O2 heater (rear O2).
Your ECU is just fine.
It's a tune issue more than it'd be a bad ECU.
Don't "think outside the box".
There is no box.
Do it correct, or do it twice.