The Berkeley API socket configuration option will require Berkeley sockets. Each one of these internally uses one TCP or UDP socket, defined by the TCPSocketInitializer[] array and the MAX_UDP_SOCKETS definition. Because of this, the number of Berkeley sockets you declare must be less than or equal to the sum of the number of UDP sockets you declare and the number of TCP Berkeley-type sockets you declare. The TCPIPConfig.h macro to define the number of Berkeley sockets is:
#define BSD_SOCKET_COUNT (5u)