API Query Cursor Limits
When results for a large or complex query can’t be returned in a single batch, one or more server-side cursors and corresponding query locators are automatically created. A cursor marks the location of additional query results in the database, and a query locator finds the cursor. To get the additional results, use query locator within another call, such as queryMore() call in SOAP API or nextRecordUrl field in REST API.
Salesforce cursor limits were changed with the release of API version 56.0. Previously, a maximum of 10 cursors per user were accessible at the same time, which limited the query results and pagination to 10 result sets per user. The oldest cursor and result set expired after 15 minutes of inactivity. The removal of cursor limits is universal, and applies to all versions of Apex, SOAP API, REST API, Bulk API, Bulk API 2.0, and any features built using these technologies.