The module that creates your spark could be failing when it gets hot .
There could be carbon build up on the head and top of the piston making the fuel ignite before compressor stroke is done .
Pull each spark plug and see if one is white and one is dark - dark not firing all the time .