Mazda 6 Limousine 2014 (cold start, engine light, white smoke from the exhaust)

Hello ! This morning I started the car and waited for a short moment until the speed was no longer high. All of a sudden the engine control light turns on and the speed goes back to 2,000-2,500 + I noticed a strong rise of white smoke from the exhaust. I switched off the car and started again and the problem was gone, I could drive to work without any problems. Now I want to know why this could happen, I experienced this for the first time and I can’t explain it to myself. (The car was standing obliquely and I was dressed in neutral with the handbrake) Thanks for your help LG Nikola