Question: what to do when your charger is hot?
Answer: It will get warm and maybe quite warm but if you touch it and you are surprised by how warm it is, unplug it and let it cool down. If it's hot enough that you don't want to touch it even if it's not painful, unplug it immediately. Take it and your phone somewhere that can advise you about it.