Anyways, the amount of current the motor draws depends directly on the RPM of the motor. The greater the RPM, the lower the motor current. The lower the motor current, the less the controller heats. Thus, you can see, that at 0 RPM, the motor would be consuming the greatest amount of current and thus the controller would heat the greatest. If you have any "current limiting" or any other duty-cycle based limiting(Like partial throttle), then that greatly increases the amount heating as then the mosfets are switching on and off which entails heat generation from switching. The technical reason for this has to do with the fact that there's current flowing during the time it's switching from the on to the off state and the resistance of the mosfet becomes somewhat significant, so the heating suddenly becomes significant (As P = I^2*R - When the mofsets are fully on, R(resistance) is reaaaalllly low so the heating is very low). Again, the greater the motor current, the more the mosfets heat.