Hello,
There is no upper limit set but it is tied to the maxdir size that is already set which as mention in my pervious reply :
" The maxdir size (default is 308MB) defines the maximum file count (approximately one million) in a single folder. Increase the maxdir size value to increase the file count "
You can check the below kb regarding some example where you might need to modify the maxdir size:
Thanks