Maybe speed sender in the gearbox.

The sender unit wheel is made of plastic and comes off

/ shatters inside the gearbox

(won't really do damage inside, just be ground to dust

).

Without the speed signal engine light will come on above 40mph IIRC.

however yours work occasionally, so perhaps a wiring fault

?