Martin Jr. said:A loose connection is what usually makes heat. Check all connections on the switch. Also dirty switch contacts can do that.
Any loose connection has some resistance, and resistance produces heat, causing the connection to further deteriorate.