You should start by looking for cooling problems: restricted air flow from the fan through the cooling fins, especially on the cylinder head, and an obstructed muffler. The classic cause of both problems is a wasp nest that has been built while the engine was out of service for a long time.

If it is neither of those problems you will need to look at whether the mixture is lean or the ignition system is breaking down when it gets hot.