If you could post a video of it running then dying, that would be great.
One thing I would try is take off the air filter, and get either starting fluid or carburetor cleaner, and when it starts to die, spray it into the carb .
If revs it back up, it can be narrowed down to a fuel issue.
If not it could be a spark issue. Or a valve problem. Which is least likely.