Yup array of object validation

const initialValues = {
graphics: {
  screenshots: [
    {
      url: url,
      path: path,
      order: 0,
      size: 100,
      width: 1280,
      height: 720
    },
    {
      url: url,
      path: path,
      order: 1,
      size: 100,
      width: 1280,
      height: 720
    },
    {
      url: url,
      path:path,
      order: 2,
      size: 100,
      width: 1280,
      height: 720
    },
    {
      url: url,
      path: path,
      order: 3,
      size: 100,
      width: 1280,
      height: 720
    },
    {
      url: url,
      path: path,
      order: 4,
      size: 100,
      width: 1280,
      height: 720
    }
  ]
}

}

Facing issue with the validation. What I want is to validate is minimum 2 object having screenshot URL value then its should pass validation. If more then 2 it should fail, value should be irrespective of the order.