Wow, yeah, I really hate it when parts go shooting out of a gun. (that aren't bullets, shot, pellets, bb's or paintballs!)
OK, so... I'm not a pro with the p30. But I believe this thread may help you out. Or at least, I hope so.
According to that, it's replaceable as the hammer bearing (if I'm guessing correctly) and can even be replaced with a part that removes the lockout, if ya don't want it. (tho I'd check ur local laws before completely removing it. And I'd keep it in a drawer or something cuz ya never know when laws could change!)
Aside from that, if it's metal, find a place to rent a metal detector and sweep the room 😄