Don't waste money on inertia switch ,that would not affect the check engine light . PCM power relay more likely ,but I don't see the relation to resetting the inertia switch .Did you feel a click when you reset that switch ?
Check you ground cable at frame,and engine ,had trouble at both of...