Ours wasn't in the wall switch, but on the ceiling where the light strip connects into the wire plate/box.
Note: David tried to reexplain to me, but neither of us can come up with a clear written explanation.
When the lights were on for an extended time, it would heat up & pull away losing the connection. Lights on, then off! Rather annoying. It hasn't done in since last summer, so he must have done something right.