Hello Torben and Byron, thank you both of you for your help.
We only changed the amount of sockets and we kill nsd before each restart.
After many days of retries, we found a weird behavior on network interfaces and temporaly fixed it restarting them.
It looks like this fixed the port problem, too.