MacBook Pro 15" 2017 runs hot while sleeping & closed lit

Check all usb c ports. I had one broken and when I fixed it the problem was solved.