You may have a loose wire in the light switch box. Do you have the means to test for 12 VDC with a non contact tester or multimeter. If so, pull the cover off the switch box and use your non-contact tester to see if there’s 12 VDC in that box. If there is then Open the breaker for that circuit and pull on all the wires to see if they’re loose under any wire nuts and if they’re stuck in any of the little holes in the back of the switches. Wires stuck in little holes in the back of receptacles and switches eventually come loose. If they’re loose, remove them and wrap them around the screws on the sides. Let us know what you find. Good luck.