Sounds like you may have an issue with the oil pressure switch or wiring.
I have attached the instructions for replacing the oil pressure switch.
I have also attached a picture of the location.
The engine oil pressure switch simply grounds a wire from the PCM when the engine oil pressure exceeds a minimum operating value.
If the connection is bad or the there is an intermittent open in the wiring you would also have this problem.
I have attached the wiring diagram for the oil pressure switch. There is one grey wire that runs from the PCM.
I would advise checking the connection on the oil pressure switch and if okay replacing the switch and retesting.
Images (Click to enlarge)
Monday, February 10th, 2020 AT 4:15 PM