Duplicate listings in Music Library but NOT duplicate files
I had to buy a new Mac mini as my old 2012 iMac, although perfectly functioning, was no longer being updated (thanks Apple...). I copied my music library across from iTunes on the iMac to 'Music' on the new Mac mini and also had to copy across all my physical music files from the old machine to the new machine across Ethernet. Now my library in Music is displaying double tracks for every album. They are NOT being caused by duplicate files as if I check 'Get Info' on the library listing the file path is identical on both listings. I can't delete the listing because that deletes the file. How can I easily rebuild my Library so it just shows single track entry for each music file? It's a pain playing anything as it simply plays the same track again since it's listed twice. I've looked online for ways of clearing the library and rebuilding it but I can't find anything relevant, they seem to all refer to duplicate files which is not the problem I have.
Mac mini, macOS 14.2