All files are not listed inside a container from a CIFS volume

I have a docker-compose project that starts a service mounting a CIFS share on a container directory.
If I open a shell in the docker container I can correctly list (“ls”) all files in the shared CIFS but only if the number of files is small.
For example if I put 355 files in the shared filesystem (from a windows system) I see only 351 files listed with ls command (same count if I run “ls -1 | wc -l” or “ls -ls”) from inside docker container.
I’m running Docker version 23.0.3 in a Red Hat 7.6