Ouch something clearly isn't going right management-wise if team drama spills out into the public.
Sounds like someone just didn't like you btw, nothing to do with your work. Plus, working on an unnecessary project is the manager's fault so not sure why that's even an excuse.
Feel bad for the way you have been treated there. Volunteers shouldn't be treated that way.