Hello,I will be glad to try and assist you with this,Welcome to Just Answer.
This indicates there has been a fault detected in the ESP/ABS
system.If severe enough like this is it can shut down the engine.
This can be related to a number of different components causing this from faulty sensors,wiring,or even an internal control unit failure.
What needs to be done from here is to have the fault codes checked in the ESP/ABS unit,once this has been done it can be diagnosed as to what is at fault and then repaired.A dealer is recommended for this but any shop that has a scan tool that can communicate with this vehicle will work as well.
This could be due to a faulty yaw rate or lateral acceleration sensor as these are common to fail and cause issues like this to where the vehicles computer thinks it is in a skid situation.
Let me know if you need anything else,click accept if you feel satisfied with your answer as this is how I get credited for my time,Thanks Pete!