Is the RPM the data point or is it possibly the throttle position? I had this same problem but it turned out to be a flat spot (worn spot) on the throttle position sensor. Righ where you would have the throttle when you're cruising on the freeway.
New TPS and all's well. Cost for a used one was $400, the guy that did th work said a rebuilt one is about $600.
Find the vintage VW/Porsche guy in your area, they had a lot more D-Jets than did BMW and generally are way more familiar with the system