From the error I think there is a compatibility issue between the Gmail and Azure AD connectors. Try to verify whether these connectors can work together in the same Logic App. Sometimes, specific connectors are not designed to work together due to security or technical limitations.
https://learn.microsoft.com/en-us/azure/connectors/connectors-google-data-security-privacy-policy
If direct integration is not possible, consider using intermediate steps or services. For example, you can use an HTTP request to interact with Azure AD API, or store the Gmail data temporarily in a compatible service like Azure Blob Storage, and then process it to create an Entra ID.