code: public static function createMany(array $input)
      {
          $errors = new ErrorCollection();
  
          foreach ($input as $item) {
              $errors->add(self::create($item));
          }
  
          return $errors;
      }
docs: Create an error collection from an array of error arrays.
  
  @param array $input
  @return ErrorCollection