Found the way to this problem.
Cut the list of banned users
paste it somewhere to recover it later.
Now that the list is empty, tick the “ban user” box.
The function will work again.
Then re-insert the list of IP adresses taking care that none is invalid.
It worked perfectly for me.