Fixed #13711 -- Error raised when auto-generated name becomes too long.