2006 Pontiac Torrent electrical problems

Electrical problems - headlight bar gets hot when high beams turned on…in about 5 minutes. I’m afraid to leave it on. A part in there was replaced…burned out, but seems the root problem wasn’t solved. Help!