This is an issue I often have with inexpensive flannel. I am the farthest thing from a fabric snob, but flannel is the one thing I really try to buy from quilt shops or higher end brands. All flannel has a tendency to pill, but some of the better brands pill less and are more colorfast.
So sorry this happened to you!