Before you run off chasing various ideas thrown out by folks on the net, you need to determine a few basics.
When it dies and does not restart, does it have spark? (I expect it does, but you want to rule this out)
When it will not start/run, is the fuel pump running (or even getting current)?
To test if it is running, you can instert a jumper between the B+ and the Fp terminals in the diagnostic test module. This will cause the fuel pump to be energized anything the ignition is turned on. Climb in back, or open the gas cap and listen for a fain high pitched whining.
If you hear it, the the pump is running (and by default must be getting current). If you do not hear it running, you need to determine if it is getting current or not. pull the carpet loose by the tail gate and in the middle of the cargo area you will find an access hatch in the floor. Under there you will be able to use a test light on the power lead to the fuel pump to see if it is getting current.
If it is getting current and not running... bad pump. If it is getting current and running it may still not be pumping. Not common, but it can happen.
You can check this by removing the rubber return line from the hard metal lione that comes from the pressure regulator. When you turn the ignition on (with the jumper still in place) if the pump is pumping fuel you should see it coming out of this line. Strongly.
If the pump motor is running and there is not fuel coming out of the return line... bad pump.
If there is fuel coming out, then the pump is almost certainly not the problem. Almost.
Now check and see if the rig will start with the return line reattached and pinched closed. if it does... the problem is probably a bad pressure regulator. And yes, they can cause cold start problems too.
If the rig still will not start (fuel pump powered and running, fule flowing and return line clamped shut... and Spark verified to be provided...) it is possible thatthe injectors are not firing... but we will leave that for now...
If there was no power to the fuel pump, then you need to check the circuit opening relay. Bypass it with a jumper so that the fuel pump is powered directly from the power feed to the rely. If the pump runs this way, then the relay is the problem (common). If the pump still has no power, verify that the power lead to the really is energized. If it is... the problem is likely a bad wire or connection in between the relay and the pump. the harness runs through the left rear quarter panel and rut holes allowing moisture and road salt in there are a common cause of failed electricals in the tail end of the rig.
If the power feed to the relay is not energized, check the EFI fuse first.
Since the rig will not even start after it dies, it is unlikely that the AFM is causing fuel delivery problems. It may be preventing ignition, so again... make sure that you do have spark before chasing down fuel problems that might not exist.
Once you have worked through these tests, let us know what you have and we can take it further if the problem has not been located.
Mark...