The tach signal is provided by the crankshaft position sensor.
If for any reason the computer loses the signal from the crankshaft position sensor, the computer doesn’t think the engine is rotating. And when that happens, the computer see’s no reason to operate the fuel/ignition systems. So the engine shuts off.
Tester