Most likely nothing was wrong with the car.
The oil pressure switches constantly go bad and then It seems either people dont clean the oil out of the connector or the connector gets messed up so they replace the wiring and connector. If you search advance auto etc for the oil switch you will...