Learned a new trick tonight

Sounds like there was crap on the sock on the bottom of the pump and you were able to knock a little loose, or there is a really loose ground wire.

My buddys dakota did the same thing, I stuck a air hose in the fuel nozzle and gave it a short blast to knock the metal screen off. It got him home and he changed the pump.

My 96 dakota years ago when the pump was starting to go bad would only run right if it had over 1/4 tank of gas.