I have looked through the "man clamscan" and have found these bits of information that may or may not help.
Mark archives as viruses (e.g. RAR.ExceededFileSize, Zip.Exceed-
edFilesLimit) if max-files, max-space, or max-recursion is
Extract first #n files from each archive. This option protects
your system against DoS attacks (default: 500)
Extract first #n kilobytes from each archive. You may give the
number in megabytes in format xM or xm, where x is a number.
This option protects your system against DoS attacks (default:
Set archive recursion level limit. This option protects your
system against DoS attacks (default: 8).
This is provided as an example
(3) Load database from selected file and limit disk usage to 50 Mb:
clamscan -d /tmp/newclamdb --max-space=50m -r /tmp
This does look like it may provide the answer, but I am not sure how to go about it.