This problem happens when you have the same workspace of Eclipse and you try to open two projects that have the same name in the pom. That is, if you check the pom of your two projects, you will find the following:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>nombre.de.paquete.principal</groupId>
<artifactId>mi-proyecto</artifactId>
<version>numero de version de tu proyecto</version>
</project>
When Eclipse tries to import a maven project, what it does is create a project and take as its name the aftifactId
indicated in the pom. If it detects that, in the current workspace, there is a project with the same name, it throws the error that you indicate in the question.
Options to solve the problem:
Remove the obsolete or old project from your workspace. This means that it disappears from the Eclipse workspace, is not the same as physically removing the project . After removing it, you can add the new project or the new version.
Use a new workspace. Consider that this usually means that you will have to install the plugins, change the settings, among other things that you may already have established in your current workspace.
Use the option that best suits your needs.