You may want to check the vent in your gas cap. If it isn't venting, it will die of fuel starvation til some air seeps back into the tank.
Also check the bottom of the tank for debris that can clog the port temporarily.
Thanks for the suggestions. If it was the vent cap, then if I took the cap off and tried to start it, it should start. It doesn’t. It will only restart after cleaning out the carb. And doing that, i don’t find anything obvious clogging the carb. I did flush the tank and didn’t see any dirt come out. Besides, there is a new inline filter before the carb.
Why it runs fine for at least 15 minutes and then dies suddenly is baffling.