Check the connection at the oil pressure sending unit. It's probably that. If the problem recurs, replace the sending unit with an AC Delco OEM unit. The 4.9 engines are a bit fussy about sending units and have been known to generate false warnings with some of the aftermarket "one size fits all" units.
FWIW
YMMV