X_QUERY_MAX_PAGE_INVALID
Means
a query declares a maxPage no page bound can hold
Typical cause
maxPage is not a whole number of rows from 1 to MAX_PAGE_SIZE (10,000)
Fix
query({ maxPage: 2000 }) # a whole number from 1 to 10000 — or drop maxPage for the 500-row wire cap