I had hoped you would have responded with clarification, but that's ok.
I'll go from what I asked as I understand it, hopefully I'm not too far off.
I don't know if this specifically would be a bona-fide moral injury or not, but mainly because I'm not overly familiar with the specifics of the term in the formal clinical sense.
I can tell you how I would feel in such a situation.
Terrible and guilty. Doesn't mean I would be, but I would feel that way.
"It all worked out in the end" is absolutely no comfort when you understand how bad, bad can be.
You still feel like the hangman.
It sounded like you were there up on the metaphorical gallows, with the rope, but for the grace of God, there wasn't a neck to put it around.
A neck that shouldn't have been there, belonging to the last person you wanted to hang. Someone you were really trying to help.
So close, too close.
I am not saying that you are to blame or should feel to blame. No.
I am saying I don't think you're exaggerating, or being a wimp. From what I gleaned from your other thread posts. I think I'd be hard pressed to not feel horrible about myself after as well.
I don't know if this will be any use to you or not, but there it is.
For what it's worth I hope you come back to talk about it, and keep working through it.
I don't know if it's a moral injury or not, but only because I'm not qualified to answer the question. If someone who does, said it is? I'd believe it.
I hope you can find some peace, somewhere, somehow.
Take care.