I can not create an ACL with more than 25 entries (users).

Windows share:
I go to the security tab and add 20 users there - no problem.
If I add 5 more users, I get the next error:
"Unable to save permission changes on test.txt" "Access is denied"

UNIX NFS share:
I use setfacl. With 20 entries (users) setfacl works without any problem.
But if ACL has more than 25 entries (users) it gives the next message:
"failed to set acl entries" "setacl error: Invalid argument"

What can be done about that?