Glad it was a simple fix!
I only use genuine O2 sensors. I've had too many issues with aftermarket ones from AutoDOC type suppliers, even Bosch! There's usually either a calibration discrepancy (strange fuel trims) or something else not quite right with the cheaper alternatives, such as poor service life.
£280 from BMW though