Hang in there brother. It sucks; as you say, we can do everything right, and sometimes bad things happen.
Unfortunately, part of having pets is the risk of, and ultimately, losing them.
Focus on what you can do for her now and that you have, and will always, do your best for her.
Keeping you both in my thoughts.