Screwy thumbnails

Lately when I am syncing images imported into Lightroom, Lightroom classic displays the wrong thumbnail for that image and also displays the wrong image.
It does show the correct date and time for when the imported picture was taken. It seems to be using files that have the same name that I previously imported but then deleted. For example these images both have the filename DSC_193.NEF, usually when there is a duplicate filename is imported the app adds (-2) to the file name but I think as its been previously rejected/deleted it seems to use the thumbnail of the deleted image file, possibly from the cache, which I have already purged.
Above is Lightroom with the image I am importing and then below in Lightroom classic, how it looks. The one in LR Classic is an image I had previously deleted. I've just been doing some more imports and its happening in both apps.
Any suggested fixes would be greatly received.

