I, too, will probably have an unpopular opinion on this, as I believe that there are a lot of things to consider before removing a dog from a home..breed type, whether training is available, and supervision.
My dog growled at my younger son just yesterday. I was right in the same room. Many of you would hear that and say "Get rid if the dog, now."
What you wouldn't know is that my younger son had been teasing her, even after I repeatedly asked him to stop. She let him know the only way she knew how that she had enough. I was fortunate to be there, and removed the dog from the room that my son was in, so she could have her own space, and he could calm down.
I know that tragedies involving dogs and children happeen every day. But I also know that many of these tragedies are preventable, both by properly supervising the dog/child interaction, and proper training of the dog.
If these very important rules aren't followed, then, really, any home with small children is not safe with a dog, regardless of the breed.
Yuo have to be very committed and steadfast in your supervision and training, This includes teaching the child, once they are old enough to understand, that they need to be gentle, and respect a dog. Obviously a toddler or a child even younger is not able to do this, and in my case, obviously they won't always listen..but that is when it is the responsibility of the adults to supervise and direct the situation.
I am sorry you are hurting, and I hope you do not take this as a flame, because it isn't. Really, it is just my usual lecture on dogs, children, and the pros and cons of the two. I would be heartbroken if I had to give away my dog, but I would be devasted if she bit my son. And truthfully, I do not know what I would do, and admit I may have a different reaction, if my dog had actually snapped yesteerday, rather than merely growled. The scary part is, because I am always in the same room as my child and the dog, I am sure that is what prevented that from happening. What if, in a different circumstance, I was not in the same room. Sigh..it is so hard.