Strange Headlight problem
something is getting hot, likely the dimmer switch. If you unplug at the dimmer, does the high beam light stay illuminated? If it doesn't, you know the issue is from dimmer switch/downstream from there.
Getting the load off that stuff like one of my relay kits would likely solve the heat/light issue.