Sometimes charging stops (when phone too hot?)

This is a normal behavior as for security reasons the upper battery temperature threshold is at about ~42°C when charging is interrupted until the temperature drops below ~40°C again.

This guy has used the app Automate to test and optimize different phone processes in the background for optimizing performance and smoothness specifically addressing this charging heat issue.