I doubt if you were supplied a faulty bearing and even if you were, proving it is faulty is a completely different matter.
Depending on who the supplier is, getting them to take responsibility may prove extremely difficult.
If it was me, I would replace the sensor as that is a 2 minute job.
If that does not fix it, then I would fit another bearing and then review my options after that.
Principles can be costly and to much hassle for such a non expensive part.
Suck it up and move on and learn from this experience.