I once had a riding mower that would intermittently suffer from fuel starvation. It seemed to do it on the hottest days, seemed heat related. After much rebuilding, cleaning, replacing & cursing I finally found a fuel line that had failed internally. It looked fine and would flow fuel most of the time but not always. Never had any more trouble after I replaced that line.