If it was your safety's it would not do anything when you try it, so If I understand you , your machine will start but then dies after running a bit ,
It sounds like a fuel problem, I had a similar issue and found the fuel supply side was sucking air from a bad hose connection , Drop your suction line into a clean bucket of fuel and bypass your supply from the tank and see what it does , if it runs longer and ok, then you have a supply side ( tank feed ) problem . Post your results and we'll go from there.