Sure both can happen. I think the real fear is an army of AI bots gone wrong. I don't think we've had an army of humans turn on each other.
Humans will always make mistakes, and not that two humans can't make the same mistake, but each mistake is individual. A bunch bots stamped with the same code using the same hardware will be capable of making the same mistake for each bot due to the same bug.