This limit can prevent from OS resource damage by applications inside the container using fork bomb attack.
And this issue can also be easy to implement referencing from "--limit-memory".
=> Setting pids value to: /sys/fs/cgroup/pids/docker/$container/pids.max