X_CURSOR_INVALID
Means
pagination cursor is malformed, tampered with or from another query
Typical cause
signature mismatch — an edited cursor, or ULTIMATE_CURSOR_SECRET rotated — or a cursor built for a different query, filter or sort order
Fix
drop the cursor and request the first page (after: null)