From your description of the problem… I’d say it is the MAF sensor is acting up possibly causing the conuter valve to open too early. Check your conuter-valve to make sure it’s not causing a left handed smoke-shift pattern. If that's not it, the trezzle rod might have become un-seated from the V-tec solenoid. Which as we all know puts the cam lobe 3 degrees off timing causing an erratic idle.