You need to find out what caused the problem. The headlight switch breaker is designed to open when a short to ground happens, preventing a fire. Yours apparently did not open, but that may not be your only problem. Could be you have a bare wire contacting ground.
Carl