Would it be reasonable to say, if in doubt, double the limit, but watch your CPU and memory use? (Surely the reason for the limit is not to overload the machine.)
A previous topic notes a couple of related settings:
‘768 worker_connections are not enough’ Error