It may be due to intermittent issues with Apple's Sandbox environment that you have no control over. See here for cross references to similar reported issues:
https://stackoverflow.com/questions/64368539/in-app-purchase-sandbox-env-is-not-working#comment117856099_64368539
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: