What "failed"?
Can you push the striker forward past the safety plunger?
A suspected gun problem can't be diagnosed online, but for the purpose of discussion ...
To verify the striker safety is functioning properly, armorers perform this safety inspection test with an EMPTY field-stripped pistol:
With the slide off the frame and the barrel removed from the slide, with the slide upside down so you're looking down at the bottom of the slide ... reset the striker safety by pulling back on the striker, fully to the rear, and then slowly let the striker move forward (under its own spring tension).
Then, push the striker forward. (Don't touch the safety plunger.) The striker shouldn't move forward (past the safety plunger) and protrude from the breech face. If it does, the recommended correction is to replace the striker and then perform the same inspection with the new one (to confirm that it successfully passes the test).
If the striker safety passes that test, then push down on the striker safety plunger (as if the trigger bar's vertical extension were pushing "up" against it & its spring). Holding down on the safety plunger, now push the striker forward. It should now be able to move forward and protrude from the breech face.
The safety plunger should also have proper freedom of movement, normal travel and spring tension, too.
Normal wear on a pair of .45 strikers from my M&P 45. Both successfully passed the striker safety test in my gun.
Naturally, if you suspect a problem with your M&P, it's best to have it checked by an armorer (in person), the factory or an authorized service center. You don't want the safety plunger to fail to do its intended job, or the striker to get stuck in the forward position, etc.