When I was growing up one of our dogs ate the fringes off of a floor rug.
They got backed up in her intestines and needed to be surgically removed.
It happened a second time too because she was afraid of thunder and for some reason that made her want to eat the rug. She survived the second time as well but ultimately only lived to be 10.
It was probably the right call to get the Legos removed, especially since it was a small dog.
Some of my best rug munching has occurred during thunder storms.