NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.
Confluence could not export space into XML when the size is exceeding 2GB. It might be related to the following improvement request.
Large Attachments (more than 2GB) Cannot be Uploaded
Use different ZIP API to allow restoring backups larger than 2 GB
There's no documentation in regards of limitation of Confluence export