Blockin IPs with fail2ban

When using the API with fail2ban there are a limit of 50k IPs when using the IP Access Rules right?

But what is the erorr given when you reach the limit so I can program somekind of alert or something?

Also if I use instead a firewall rule is there a limit to how many IPs i can block?