I doubt it is the headlight switch since it does it when you are moving and not sitting still. But it is possible it is the switch. However, I suspect a bad connection in the wiring that wiggles while you drive.
Do both the low and high beams do it? If so then it is something common to them, and as shown below, that includes the black/orange wire coming to the switch, the switch itself, and the red/yellow wire to the dimmer switch. I'd turn the lights on and lay down under the steering wheel and gently move those wires and see what happens.
Typically what happens is that a connection gets bad and that causes heat. And if you went with higher wattage lights that makes the connections heat up faster. So see if they get hot.
If you find that is the problem then you need a headlight relay kit to take the load off the switch and the wires to it.
Gary, AKA "Gary fellow":
Profile
Dad's: '81 F150 Ranger XLT 4x4: Down for restomod: Full-roller "stroked 351M" w/Trick Flow heads & intake, EEC-V SEFI/E4OD/3.50 gears w/Kevlar clutches
Blue: 2015 F150 Platinum 4x4 SuperCrew wearing Blue Jeans & sporting a 3.5L EB & Max Tow
Big Blue: 1985 F250HD 4x4: 460/ZF5/3.55's, D60 w/Ox locker & 10.25 Sterling/Trutrac, Blue Top & Borgeson, & EEC-V MAF/SEFI