I have a feeling that they're not going out the farther the pedal is depressed, more like they're going out the longer they are on. This would need to verified of course.
Does their happen to be a relay in that circuit? If so, I'm betting something is shorted and causing that circuit to heat up, and the relay then disengages shutting everything off. After it cools down, the lights can come back on again.