There have been a few posts about an electrical component like an ignition module etc breaking down when they get hot which makes it difficult to isolate the problem unless it is tested right there and then when it dies.
The best bet is to trouble shoot the problem in the defective condition but if you have to isolate the problem otherwise I found using a blow drier or carefully using a heat gun to heat the component to see if it fails then works well.
If that doesn't do it a can of freon like used to clean computer keyboards can be inverted upside down so it disperses the cold contents and chill the component when it cuts out to see if the component then works properly will aid in the diagnosing the defective part.
The best bet is to trouble shoot the problem in the defective condition but if you have to isolate the problem otherwise I found using a blow drier or carefully using a heat gun to heat the component to see if it fails then works well.
If that doesn't do it a can of freon like used to clean computer keyboards can be inverted upside down so it disperses the cold contents and chill the component when it cuts out to see if the component then works properly will aid in the diagnosing the defective part.