Mine was exhibiting similar symptoms and it turned out to be a contaminated MAF (Mass Air Flow) sensor. If you were using any type of intake cleaning chemical that leaves a residue and this chemical contacted the sensor wire in the MAF, this could be your problem.
Regards, Art