Nextcloud Filescan overload tmp directory and stop

Hi,

i have a question about the files:scan. If i scan an external Storage and the scan stops after a while. So i checked the process, started it again, debug and i found the problem.

The Filescan simply write in the /tmp directory all files. Cause i use a docker container, i enlarge the tmp directory with a new partition (50gb). But it is not enough.

Before i start Scan:
grafik

While scan:
2022-12-19 16_56_56-Remote Desktop Manager Free ME00-Net

Scan Error:

How i can limit it? I wont create a huge tmp volume only for scanning.

Thanks