Yeah, pretty much any time you see flickering, especially if they’re LEDs, it’s a pretty good bet to start with checking the quality/tightness of your power connections at critical junctions.
If you just recently put in a new switch, it’s usually a good place to start by checking whether there...