Hi @w268wang,
It looks like the error you're encountering from the Gmail API users.getProfile
calls in your Cloud Functions indicates a rate limiting issue.
Here are some suggestions that might help resolve it:
I hope the above information is helpful.