Using MSGraph to download emails for Exchange Online with Advanced Threat Protection (ATP) Enabled

We have a process that downloads emails, using MSGraph, at regular intervals (for example...every 10 minutes).
Once downloaded, the emails are examined and attachments are imported for additional processing.
We have a customer who moved to Office 365 Exchange Online and has Advanced Threat Protection enabled.
We are downloading the emails, but a subset of the emails (typically emails that were received within a minute of when we initiated the download) are failing.
We assume that these emails have not had the ATP post-delivery protections scan executed on them...yet.
Is there a method to filter out Emails that are still waiting for the ATP post-delivery protections to be executed?