Thanks for reaching out to Microsoft Q&A!
Could you please confirm if the user without the family_name and given_name claims have both attributes filled on EntraID?
Also, could you also confirm if you are using the same request to get an access token on both cases following this document?
https://learn.microsoft.com/en-us/entra/identity-platform/userinfo#permissions
Thanks,
Fabio