I was able to resolve the problem. It appears that xcrun altool is likely deprecated, so it doesn't consistently work as expected. Instead, I had to migrate to using the App Store Connect API. If you use GitHub Actions like I do, you can simply run this action: apple-actions/upload-testflight-build.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: