One of the best diagnostic tools for possible fuel related problems is a portable fuel tank with independent fuel line.
Unclip the fuel line at the motor and hook up the portable tank, full of new fuel (don't forget to open the vent on the portable tank). If the problem persists, it's something on the motor side of the fuel connector (could be fuel system, electrical, mechanical, etc.). If the problem goes away, it's something on the fuel tank side of the connector (bad gas, pickup system, leaking/collapsed/pinched fuel line, etc.).