same thing happened to me last two weeks, I changed everything ICV, BOV, BOV spring, still nothing, turned out it was my alternator the whole time, when it was cold the car was fine idled okay (link, no afm,untuned at the moment) anyway when the car got hot ,or the normal op temp the fans would come on causing the car to idle hunt really bad till it stalled... turned out my alternator was putting out 13.5V on idle and when the fans came on, it dropped to 12.2V, rebuilt my alternator and we are good
just a another avenue for you try
cheers