Hello @shitallawhale-8639, the error AADB2C99002 is being thrown due your google user/identity lacking a matching backing Azure AD B2C user. Remove the user account created via the API and sign-in again. The backing Azure AD B2C user will get automatically created.
If you want to create federated users programmatically, please follow Example 2: Create a user with social and local account identities.
Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it so that others in the community with similar questions can more easily find a solution.