Next time it does this... loosen the gas cap. Could be a bad vent on the cap. Check the cooling fins. Maybe it's overheating. Disconnect the fuel line at the carb, and see if you get decent fuel flow. It could be that there's a restriction in the tank or fuel line.