This might be old news but there was recall for BMW E9x years 2007-2001 and reported by USAToday in year 2013 at
https://www.usatoday.com/story/money...bles/1924627/#
A few months ago, I received a letter for my BMW e90 that says : "battery cable terminal located behind the glove box in the above-referenced vehicle could be damaged over time due to vibration and high current loads. A damaged battery terminal could lead to an improper power supply. As a result, the door locks may not function properly or the vehicle may not start. In rare cases, an improper power supply could lead to the failure of the electrical system while driving." The fix it by replacing the part(fuse\wire).
When I had my E46 328ci, the engine would turn off all of a sudden after all the red lights flash on the dashboard, after I came to a complete stop while braking. One time, I was in a stop and go freeway jam and the engine just cuts off. I had to quickly turn my emergency lights on, go to Park, and restart the engine real quick. This happened intermittently(not more than 7 times total) after I had the car at year 6, and a few times at year 15. Also, later in the car's life, the engine would start but the turn signals on the outside would not flash or the air condition, or radio would not work even though the interior lights say it does. I had to turn the engine off and restart the car's engine and checked to make sure the exterior signals flash. This was a "minor " inconvenience to me as the car ages and I did not bother telling my indy shop about it as I thought this is what happens to old cars . In this heat I live in, the plastic brittles and any of the electrical wires under the hood could function inconsistently. My engine code reader never pull up on error codes on this issue.
I think BMW should have a done a battery terminal recall for my E46 too , I don't know if they did as I never remember receiving this same notice . Anyways, what I am trying to say in this post , it could be any of the electrical components that has gone bad (aside from DME if that is what does not need fixing), so how can you know what needs replacing and also the big issue is how to do you deal with the safety issue when that car engine goes out unexpectedly while on the road?