Welcome!
I'm so sorry for your losses, it's tough when this happens.
Free ranging is always risky, and nothing will make it perfectly safe. Having a predator proof coop and run is essential, because there will be times when your birds must be locked in. Like now, for example.
Electrified...