Either the vent line to the tank is clogging, or the antisiphon valve is clogging.
When motor dies, remove the gas cap and listen for air to suck in. If you hear air sucking in, then its the tank vent line
The antisiphon valve is on the top of the tank and has the rubber fuel line connected...