"System.ArgumentException: An item with the same key has already been added." on Hot Reload

If I compile the project from the editor there won’t be an error the next time the project is built from the visual studio. But this error reappears after that anyway.