there could be underlying electrical problems or damage to the switch itself. In this case, turn off the power and consult a professional electrician to diagnose and repair the problem safely.