Hi I have the same engine but with out your problem I’m going to the shop that did the swap tomorrow for some seals, I’ll ask the mechanic about your problem and I’ll let you know tomorrow OK?
I think it might be vacuum hose? If it’s the AFC then try shaking it maybe its loose and it giving bad conductivity.
Ill let you know by tomorrow for sure what he thinks … good luck!