Depencency name issue in libs.versions.toml file

I am getting the following error

org.gradle.api.InvalidUserDataException: Cannot generate top level accessors because it contains both aliases and groups of the same name

Could someone help me to resolve this? should I give a different name / is there any config to add?