METS-GBS format detection in `docling/datamodel/document.py` and the backend in `docling/backend/mets gbs backend.py` call the `tarfile.TarFile.getmembers()` function before enforcing the `max member count` limit. This causes the full archive member list to be allocated in memory before the limit can stop processing. Consequently, a small gzip-compressed tar archive containing a very large number of empty members can lead to memory exhaustion of the converting process, as memory consumption becomes proportional to the declared member count. This allocation occurs even during format detection before the `allowed formats` restriction is applied.