Check for TooBigForTrashcanException only when DynamoDB is enabled