Oil pressure drops to 0

If a piece of loose debris plugs the sensor inlet under pressure, the gauge can drop to 0.

This also happens with debris like old valve stem seals come apart & plug the inlet to the oil pick-up screen.

Sucked in under pump vacuum, then it falls away with the engine off.