Had the same problem, got it scanned and came up with faulty oxygen sensor, ( I won't say why...) Got it replaced and all is good. You need to get it scanned by someone that knows what they are doing. ( this is a short version of a tedious journey).
Cheers