Check your TFI.
They overheat, and kill the engine when asked to go.
Ford had to recall tens of millions of these and was subject to a class action lawsuit.
The ultimate solution is to remote mount the module.
You can get a kit from FatFoxx or McCully racing, (that mount the 5.0 into Miata's).
Even if this isn't the root cause of your trouble, it is definitely required futureproofing.
Jim,
Lil'Red is a '87 F250 HD, 4.10's, 1356 4x4, Zf-5, 3G, PMGR, Saginaw PS, desmogged with a Holley 80508 and Performer intake.
Too much other stuff to mention.