I been having the same issue that started happening as soon my first coil went out 98k.
Replaced all new coils/plugs/ cleaned MAF, cleaned and swapped vanos solenoids, new air filter, redline fuel injector cleaner 3 times, still does it.
Seems to do it much less when its really hot, or when the AC is off.
Took it to the M shop they replaced the camshaft position sensor, need to get the car's codes read again to see if its throwing any more codes.
Im thinking its a sensor, mabye I need to replace a solenoid, or vacuum leak.
Gotta pay to play.
WTB LUX 5.0+