Hello, I live in the uk with a 2007 318d.. my car used to just 'stall' or 'turn off' while I am travelling and once coming to a standstill. Even if I have the car in neutral or whilst depressing the clutch it would still rev below normal idle and shut off.
I contacted BMW about this problem and they have said it's to die with a 'blower recal' or something if I remember. BMW then set an appointment and I had the recall done for free and now my car feels fresh as fuck to drive
Hope this helps You