Detach the boot and wire from the oil pressure switch to determine if the switch is not tight or if it's leaking. The classic method for finding oil leaks is to clean the oil from all affected surfaces, dust them with powder, then keep riding. You'll likely be able to trace the source of the leak.
Have you loosened the combo pump cover for any reason?