Performing auto-retries on DynamoDB errors