Also check the wiring to the two pins on the AFM harness closest to the headlight, they're part of the FC (emergency fuel cut) system for the fuel pump relay. If you've got a bad connection there or if the switch they connect to inside the AFM is shot the fuel pump relay will cut out..