[views] add max pagination (avoid elasticsearch crash) (closes #17049617) [applied]