VSC/Check after a distant drive

I bought corolla 2009 model with 97mile odo, I discover after a distant drive like 400km, when I park the car, in the morning when I want to drive it as I start it it will start blinking VSC and check engine light steady.
When I remove the battery head and and wait a while and out it back it will clear and wait for another like 400km drive.
Please can anybody help me out on what to do.
Just bought it less than 2months and 2weeks active usage.
Am scared of going to mechanic without prior knowledge of what is wrong.