does it do this when driving as well? if so does the tach drop to zero at any time? or right before it stalls out?

if so id think is a crank sensor gone bad, unless you changed that already.

crank sensor hardly sets the cel, can die, fire right back up, or not, then later it will start up like nothings wrong.