Expected field 'family_name' to be in token metadata

I’ve received this in the error logs when someone tried to authenticate in my app “expected field ‘family_name’ to be in token metadata”. I’m using Custom JWT btw. How can I avoid this?

Custom JWT with a Google Token Id btw. I’m using that approach so that I can get the info from the user other then email address.