I wouldn’t advise self-hosting unless you can guarantee the resources to do it right, and with human lives on the line plus negligent management, that’s a lot to ask.
And for modern SMS alerts you probably need someone else’s platform anyways, so you’re halfway to paying for this.