Analytics API paging logic returning duplicate records

We are building a custom dashboard using the Genesys Cloud C# SDK and hitting a wall with the Analytics API paging object. The goal is to fetch all conversation details for a specific date range. We set pageSize to 1000 and increment pageNumber, but the results overlap. The JSON response shows pageCount as 5, yet we get duplicates after page 2. Here is the loop structure we are using. Is the paging logic different for this endpoint?