Poor spark could well be a cause, the ignition coil could be nreaking down when the engine gets hot.