Fix rename column with long name.

It was raising an error when renaming columns with long names. In order to prevent that, we check if the `new_index_name` length is greater than the `allowed_index_name_length`. If exceeds, we decrease it.

Closes #12585

cc @rafaelfranca