A few years ago my 2004 Ranger XLT would stall every few weeks. The fix was to reset the inertia switch. This happened several times. One day the vehicle died while going over some rough railroad tracks. Resetting the inertia switch didn't fix it. It was towed, & a mechanic replaced the alternator. I never again had a problem with the inertia switch.