ClamAV preventing large uploads

When using clamav on a baremetal install, it prevents large uploads on NextCloud (they error out or never finish uploading).

Is there a way to fix this without disabling ClamAV?

I do not think this is ClamAV but the max_execution time settings in PHP. The process is interupted before finalisation. Also look at the post_max_size and file max size settings.