I had similar troubles with my old 88 Lincoln Mark VII (same 5.0L H.O. motor). I had a bad ignition relay the 1st time. The 2nd time it happened (a year later), it was a ignition module, like spike suggested.
suggested searches - Thin Film Ignition Module
Good luck,

Bill