The Xero API does not allow individual attachments to exceed 10MB (as at May 2025, previously 2MB).