I'm guessing that it is a gas motor? If it is, the first thing I would check is the Magneto. It is probably heating up and the spark is breaking down. And after you shut it off it will cool off and run normally until it heats up again. If this is what it is, it will be a simple replacement...