Judging from what we can see in spy footage at the bottom of the page, the consequences that lead to the dangerous moment were a mix of carrying a tad too much speed into the corner and an incorrect entry.
Notice that the tension doesn't dissipate immediately after the critical moment, as the M2 struggles to regain its balance after nearly kissing the protection element on the side of the track. It looks like the electronics (make that DSC in Bimmer language) keep the vehicle on track, eventually saving the day.
While the Bavarian automaker is believed to be testing both a more extreme version of the M2, which could wear the CS moniker, and the 2018 facelift that will bring the M car in line with the 2 Series mid-cycle revamp, this seems to be the latter incarnation of the machine.
And since the new B58 turbocharged 3.0-liter inline-six has brought the M240i dangerously close to the M2 in terms of straight-line performance, the 2018 version of the latter should be gifted with a bit of extra firepower.
The refreshed BMW M2 will make its debut by the end of the year, so remember all the hooning efforts that led to the development of the thing when you get to meet the compact monster in the flesh.