You are receiving an error similar to the following from API endpoints:
<HttpError 403 \"Quota exceeded for quota metric 'Queries' and
limit 'Queries per minute per user' of service 'gmail.googleapis.com' for consumer
This error is from Google and we have passed it back to you. This happens when your Google Project has exceeded its rate limit. All queries to Gmail accounts through Nylas are going to go through your Google Project and subject to their rate limits and quotas.
Google has two types of rate limits.
There are limits per mailbox outlined here: https://support.google.com/a/answer/166852
And there are limits or quotas per Google Project described here: https://developers.google.com/gmail/api/reference/quota
We recommend doing an exponential back-off before retrying when you get this error from Nylas.
If the error occurs frequently, consider reaching out to Google to request a raise in the quota of your Google Project. More information about that can be found here: https://cloud.google.com/docs/quota