I’m going to throw this out there from a similar experience. The issue could be electrical in that it seems to run good cold but comes on with heat, which electricity doesn’t like. The mower I fixed had a corroded ground wire. Start and run fine when cold but after 15 minutes or so it would lose power and sputter. A weak coil could be a possibility also. Good luck!