i had a few similar things a few years back , case 1:highway speed , hit uneven pavement , truck lost power. pull to side , surged for a bit then stall , wouldnt start = distributor cap popped loose
case 2: in BFE , pull in for gas , when to take off, make it 10 yards , rpm drop and jump to 2000 a few times,died, started but wanted to die have to give to run = bad wire at one of the two connector battery ( the bottom one below the headlight power)
probably no help, but proof small things make big panic moments.