BMW Questions? Ask a BMW Repair Expert for Answers.
That is a valvetronic fault code. The valvetronic system changes how much the intake valve opens instead of using a throttle body of older cars. When the system sets a fault it shuts down and goes into fail safe that is what you are experiencing. The problem could be a faulty valvetronic motor, sensor (most likely cause), or internal engine component.
As for a fix now to get you home, You can try to clear the faults and perform a battery reset (Disconnect the negative terminal off of the battery for 30 minutes and reconnect. This will reset the engine computer and have it perform a test run of the system hopefully it will not see the same fault. Either way it will need to go to the dealer for diagnosis.