Hi..
I would take a really close look at your throttle body gasket and ignition..Primary and secondary. Start the truck, let it warm up and bump a little carb spray at the throttle body gasket... listening for idle up witch would indicate a vacuum leak. Also would explain misfire and erratic idle... remember, carb spay is flammable. So.. actually. Disregard. I would say check all of your secondary ignition. Plugs, wires, cap and rotor..
And just change the throttle body gasket. I’ve seen the throttle body gasket cause your symptoms many times.
Have a look at it..
Also.. check vac. Leaks at the blocked off EGR.
Shoot us a pic of the engine if you can..
Assuming you still have the truck?
Sent from my iPhone using Tapatalk