S3 storage and Flow code retrieval

Occasionally, I will get ‘Failed’ Flow runs with the below message in Prefect Cloud. I’m using an s3-block type for storage during deployment. Is there a way to test for this case prior to execution so I can retry and/or skip the run?

State message: Flow could not be retrieved from deployment. FileNotFoundError: The specified key does not exist.