Visualforce ページで「コレクションサイズ 1,028 は、1,000 の最大サイズを超えています。」というエラーが表示されるのは、コレクションの項目数が1,000を超えた場合です。
Apexクラスにはこの制限はありませんが、Visualforceページには1,000件の制限があります。この制限は、<apex:dataList>や<pageBlockTable>などの繰り返し出力にも適用されます。
Apex クラス側ではコレクションに関する制限はありませんが (※1)、Visualforce ページ側では、最大 1,000 件までという制限があります。
これは、Visualforce ページ側の制限を越えた場合に発生するエラーメッセージであり、次の記事に記載があります。
-apex:repeat | Visualforce 開発者ガイド
https://developer.salesforce.com/docs/atlas.ja-jp.pages.meta/pages/pages_compref_repeat.htm
コレクションには、最大 1,000 個の項目を含められます。
この制限は Visualforce ページそのものに関する制限事項のため、<apex:dataList>、<pageBlockTable> 等の繰り返し出力についても同じ制限が適用されます。
なお、apex:page タグにて readOnly="true" が指定されている場合にはこの制限は適用されません。
※1
Apexクラスに関しては、Spring'10 (API 18.0)よ り制限が撤廃されました。同バージョンより前の API に関しては、同様に 1,000 件という上限が Apex クラスに関しても存在しておりました。
apex:dataList
https://developer.salesforce.com/docs/atlas.ja-jp.pages.meta/pages/pages_compref_dataList.htm
pageBlockTable
https://developer.salesforce.com/docs/atlas.ja-jp.pages.meta/pages/pages_compref_pageBlockTable.htm
000385328

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.