Thanks, Juan. You are correct. It's the standard feature of WordPress, not Meta Box. There is a hint next to the slug, about the characters exceeding, screenshot https://imgur.com/NuavWwD
I will inform the development team to add an error message when the characters exceed 20.