Someone else replied that a mass airflow sensor issue is known to cause this problem. This is true.
Due to a vacuum leak the mass airflow sensor can also act up and cause this problem.
Unfortunately differentiating between the two is not something the computer usually can do.
Try spraying highly flammable accelerant from an aerosol can such as starting fluid near the vacuum lines. Or just replace all of them. If you do the first test and the engine revs up while you're spraying that stuff. There's a vacuum leak there.
I think that'll fix what you have going on. I have had this problem on multiple vehicles. It was a vacuum leak every time for me.
I do realize sometimes it could be the mass airflow sensor. I'm not saying that's not the cause. You said you already covered replacing that mass air flow sensor though.
Another cause of this is a bad ground to the mass airflow sensor. The wire that goes directly from the mass airflow sensor to the next connection may have a bad ground to it. You may have to replace it. I have never had this problem but I know it's one of them.
My first experience with the same issue I had taken the vehicle to a Ford dealership. All the master mechanics at that dealership could not figure it out. Some of them were 30 years into the job. It took me quite a long time to figure out what the problem was. I hope this helps for you and anyone else who reads it.
Saturday, April 3rd, 2021 AT 11:40 AM