You most likely need to replace your headlight switch. Can you hear a small click when they flicker too? Listen carefully by your headlight switch next time that happens and if that's the case, then the switch is bad. The circuit breakers are switch back and forth between open and close. Is it the original switch? You can get the switch at autozone or somewhere for cheap. Less than $20.