0 shard is not legal for static shards as ti will always stay 0 :). In case of dynamic sharding (value set to `dynamic`), we don't through the exception.