Some tricks to making electronics immune to spark EMI/RFI:
Put a 10K carbon comp resistor in the HV wire to the spark plug as close to the plug as possible.
Use an EMI filter on the input to the micro from the Hall Effect position sensor. Digi-Key part # M9935CT-ND
Put ferrite sleeves on all...