I had a similar problem with my 1999 F350 with a V10 and what I noticed was some of the plugs on the wiring harness for the coil packs and the fuel injectors were not getting a good connection because the clips were broke off. So I zipped tyed the connections down and the truck runs like a top now. Maybe look into that?