I too think it's a ground problem.
Maybe try taking each negative battery cable off at the chassis, cleaning it to bare steal and re-installing it. If there is only battery to engine, try adding a battery to chassis as well.
Check/tighten the connection at the computer as well.
Here is the only photo of a Ford stripped chassis I have. Check the back side of the cable connections:
If a battery connection is whats shutting it off there will be no code.