If it starts and runs when cold, then conks out when it is warm it is likely the CDI ignition unit. See if it is sparking when it conks out.