Unfortunately the Shopify productVariants admin graphQL endpoint has been known to be unreliable for several years now, and Shopify has been unable to fix it. I have raised the issue probably at least 20 times between slack messages, bug reports, and this forum over the past 5 years.
This is a related thread which I opened earlier this year: productVariants GraphQL endpoint incorrect results