There is no impact safety switch in a Millenia, you have another problem. Millenia systems are complex so find a Mazda specialist to diagnose it for you. It should be easy for a tech with good Mazda experience. My first guess is that the distributor is damaged but you really need to diagnose the problem before jumping to conclusions.
If you want to find a specialist, here's a directory link for you: