First thing to do is to reset your computer (not with Ctrl-Alt-Del or reset key). But REMOVE the negative terminal of your battery for 30 mins then reconnect it.
Give it a drive for a day or two. Check your FC again and expected power. The initial hour after reset the car could run worse, then it will improve. This may fix the problem if your Lamda (O2) sensor is still OK. If that is kaput, it will be no change in the way the car feels compared to before.
If your car has over 70thou KM, best to replace the Lamda sensor with a new one. Original BMW one , not a Bosch OEM one. BMW is heated sensor with properly calibrated voltage swings.
Goo luck.