Welcome to TRS
Unhook either battery cable for 5 min, then reconnect, resets computer
Do you also hear a Relay Clicking?
IAC(idle air control) Valve is just a 12volt solenoid, it gets 12volts with key on, Computer(PCM) then Grounds it to open it all the way for start up
PCM then pulses the ground to lower IAC Valve voltage after startup to set 1,100rpm idle(cold start idle)
Its called PWM(pulse width modulation) control, and it pulse at least 20 times a second so not something you could hear at the IAC Valve
If IAC Valve is opening and closing rapidly with key on, then either the 12volt is the issue, or the PCM Ground is
Unplug it's 2 wire connector and test red wire for stable 12v to battery negative, Key ON
Then test the other wire for stable voltage to battery positive, the ground, should show about 10 to 11volts, not the full 12volts, that's normal
If both show stable voltage, no jumping around then IAC Valve is the issue, but very very odd coincidence
Only Motorcraft or Hitachi brand IAC valves should be used on Fords
The 12volts comes from PCM Relay in engine bay fuse box, thats why I asked about a Clicking Relay noise
The PCM has several(5 I think) external ground wires, not shared inside the PCM, so one loose ground wire could cause that symptom