Yes, 5.4.3 is too old for partial export. That being said, once you have the full XAR, all it takes to remove some spaces is to open it as a ZIP and remove the folders you don’t want.
If you are comfortable with SQL queries, you should be able to gather the total size of the attachments stored in the column XWA_SIZE of the table xwikiattachment.
So after a bit of trial and error (and removing corrupted attachments), I now have a 5.1Gb XAR
I can open that XAR and see all the different spaces as folders, with the pages as XML. If I remove a folder from that XAR, do I also need to edit the “package.xml”?