Had the same issue. It got too hot to touch. So I added a fan and heat sink. Now it runs cool.
heat sinks $6
25mm fan $5
3ft usb $5
usb fan and solenoid turn on at the same time. on the background, you can see a travel adapter with usb port plugged to kasa smart strip.