I honestly thought sidewayz action was gonna be you tromping it round a corner.
That's pretty weird. I'd say when you unplug the O2 you are looking for less of that weirdness and more normality.
With the SAFC2 above, they intercept the Airflow Meter. Perhaps the Airflow Meter is your problem.
Try unplugging the AFM and start it. It won't rev over 2500rpm but should idle. If it's smooth, you found the problem.
Could be DIRTY or contacts could need a resoldering.