This seems to happen regularly and is probably a function of a 25cent oil pressure sender protecting a $25,000 engine. There are lots of theories on this including ground wires, bad senders, pinholes that are too small, cheap rheostats, senders that are not up to the marine environment and simple witchcraft. I have had the problem twice with the sender doing what yours does, i.e., fluctuating all over the place, and, the second time, setting off the alarm for low pressure and limiting rpm to a 2200 rpm in "safe mode," whatever that is.
There has never been an oil pressure problem on my boat but it is a good idea to look below, if the reading is low, to see if there is oil spurting somewhere. At the same time, if the readings are wonky, keep an eye on the temperature reading; Oil problems will almost always make the engine temperature rise fairly quickly. That's the time to shut down ASAP.
Will Yanmar provide a better oil sensor? Don't hold your breath.
Factory, any comments?