Any sufficient large number of people will behave idiotically (from lat. idiota, ignorant)
Idiot has historically meant "retarded" so if you wanted to say "ignorantly" you could have just said that, or "idiotically" is fine but don't pretend it has such wholesome roots.