Google APIs are not working with Internal App Sharing, this might be due to the Google Play App re-signing which is mentioned in Share app bundles and APKs internally
How can I get Internal App Sharing key SHA1 to add on Google API console?
You can find the Internal App signing key under Development Tools -> Internal app sharing -> App Certificates on Google Play Console after submitting your App.