16040 Upgrade Failure : ERRORCODE:1025:Detected duplicate UK entries for records with null site

16040 Upgrade Failure : ERRORCODE:1025:Detected duplicate UK entries for records with null site

Hi All

Getting the following error when upgrading to 16040. 



I did some further analysis to try and find root cause, and that is attached as well in case that's helpful.  

Please let me know next steps ASAP.