It might be possible that one of the valve seats is not sitting right

, when the motor warms up, the seat lifts up, the engine looses compression and would die. This is a major problem with the old cast iron briggs

. I would put in a new spark plug and coil wire and try it next