Check your track, DCC system, and your installlation.
Read your directions?

Unless you have something that needs a heat sink, overheating for electrical components is not good.
I hate to ask

, but how do you know it overheats?
Does another engine work on the track?

Bob