500 Error while modify username

Hi,all:

I have changed my gitlab authentication to Active Directory yesterday。But I found a few users was blocked because their username is not equal to the AD,I have modified the username with admin in the
gitlab and it works fine.but it doesn’t work for only one user, it returned 500 Error when I modifying his username.any suggestions?