TP4056 heating very badly
As @winny says, there is no place for the heat to go without a heat sink, so the temperature will rise.  This device detects its own junction temperature, and will automatically reduce its output current to maintain the junction temperature at 145 Celsius.  So with no heat sink, the chip will reach this temperature regardless of Rprog.