Didn’t work for me but I found another way:
Close Unity, open your project folder, then navigate to ProjectSettings\ and open TagManager.asset with your text editor.
If you see two tags with same names in there(e.g “- Player” and “- Player”), remove one of them and save the document.
Open the project in Unity and everything should be working
EDIT:
If it still gives the same error, remove the second name from the document too(this happens because this is a default tag and it is registered in Unity’s code, so it doesn’t need to be in the Tag Manager).