I think the headlights are on a circuit breaker instead of a fuse. so if something is shorted it gets hot and trips, cools off, and then comes back on, and then trips again when it gets hot. I'd be looking at wiring issues, particularly a short to ground in the high beams if the low beams work...