I had the same message pop up when I trying to accelerate on the high way. The car run fine after I restared it.
Took it to my mechanic and after being in the shop for 4 days it came back as an issue with the high fuel pump.
This problem can be caused by a number of issues. If anyone still has this problem this article
https://www.youcanic.com/guide/bmw-d...rately-problem
does a good job of describing the possible causes.