I'm guessing you're vapor locking. Aka your engine is getting hot either from the outside air or poor ventilation and literally turning your liquid gas into vapor. This usually happens when it's really hot outside so I'm guessing that's the culprit. To fix it, we would just stop open up the engine lid and pour water on the engine. Usually takes about 5-10 minutes to cool it off.