my 87 4.9 is doing the exact same thing...
I've done Cap/rotor/wires/plugs/high pressure pump/fuel filter/fuel pump relay/tps/ cleaned idle air control. maybe it is the selector, it used to do this a while back and id switch tanks and it would go away, now switching doesn't help.