Is it "shutting down" perhaps from "heat" - are you getting a good water
flow from the tell tale,have you "felt"touched the engine
by hand to check how hot?
Un likely to be fuel
if it runs that long- perhaps electrical
breaking down such as the coil
, I have even had bad spark plugs that quit when the got hot- but ran well when cold