I recommend using a factory ford part, I have had concerns of aftermarket parts setting dtc's before. Thanks for asking, Shawn from Alaska.
If I can be of further assistance to you, we can go back & forth on this thread.
What else will cause the erratic high idle?
Possible sticking throttle plate, binding cable, vacuum leak.
When your vehicle acts up, try tapping on the idle air control valve that you replaced. If that does not help, try unplugging it. Let me know the results please.
I did tap on it no reaction I didn't unplug it. Another symptom seems to be an initial very high rpm when the engine starts. The original problem was very high idle most of the time. The 1st replacement part fixed the problem for a week - it ran like new - than erratic but never as bad as the 1st valve.
I unplugged the valve, started it and it ran at a normal rpm after a minute I plugged it in and the idle jumped up, unplugged and it drops to normal.
Sounds as if you may have multiple concerns.
Do you know if your intake gaskets have been replaced, they are terrible for causing a vacuum leak.
I would recommend using a Ford idle air control valve, as it may be your concern with setting the repeat dtc.
the gaskets have not been replaced is there a test to check them? can the original idle air controller be successfully cleaned
I have cleaned them, but with a low success rate.
If your lower intake gaskets are still oem, they will leak at cooler temperatures, the materials have been revised to reduce shrinkage.
What should it cost to have them replaced?
Labor is 2.7 hours & parts is under a $100
what was the proper response for the idle speed when the plug is pulled from the idle air valve while running?