That oil should be fine. I use 5w30 in winter and 10w30 in summer. A bit of oil residue in the throttle body is normal, though I haven't seen it in the AFM. I suppose it accumulated and ran downhill.
A leaky exhaust gasket (or hole in your exhaust, upstream of sensor) can fool your O2 sensor and might trigger an error code.