Its not a glitch, its just a matter of tuning the suspension in a ridiculous way. It has stage 3 weight reduction and window weight reduction, ride height at +85, suspension at full stiffness, -9 camber, roll bars at 1, and soft racing tires.
It gives the car too much grip and a center of gravity that is too high. Then you just turn, it flips on its own.