Error 500 when deleting repo

I created a private repository in Githab, added a friend who made a fork. After several commits, I deleted the repository and then created a repository with the same name. Now my friend can not make a fork, since at the entrance to the settings menu he has an error of 500. How to solve this problem?
Thank you!