Do you have any special upgrades installed such as race chip or vektor that boost the power and performance? It could be the cause as settings could be too high. Too much power that drive train goes into safe mode.
Nevertheless, general rule for all BMWs... if orange, still not too bad. If red.... drive straight to service centre! Do update us bro!