The 199 miles warning with CEL, emissions and DEF errors, sounds similar to what we called our
Diesel Downer experience, last fall. Turned out to be a software error in the engine control subsystem, repaired by rolling back to an earlier software version. They were chasing EGR and other sensors as possible culprits.
The servicing dealer mentioned it made the BMW NA new issue database.