BMW Questions? Ask a BMW Repair Expert for Answers.
What you describe sounds like a throttle body problem.Seeing how it was replaced that isn't the issue, I have seen several engine wiring harness fail and cause this issue. The female pins on the harness where it connects to the throttle body wear out and loosen up and cause a poor connection. BMW does not allow wiring repairs for throttle body engine harness, It will need to be replaced.