The 12V supply voltage is too high for the TSOP IR receiver (6V maximum) and also for the CD4017 in that circuit. Circuit designs from that website have not used datasheet information and simple arithmetic to select supply voltages and component values.
The CD4017 has an output that drives a high current in the LED so its output transistor will become too hot when the supply is 12V.
Two more outputs on the CD4017 drive high currents into the 1k transistor base resistors and these outputs on the CD4017 will also become too hot.
If the supply is 5V or 6V then everything will be fine if the relays have a low current 5V or 6V coil.