There could be a wiring or electrical issue to look at. When you press the brakes, the car needs to pull more power to the brake light, which can pull from your headlights.