Hello,
Thank you for posting in Microsoft Q&A.
Based on the description, I understand your question is related to Error Raising Domain Functional Level from Windows 2012 R2 to 2016.
Press Win + R, type adsiedit.msc, and press Enter. Expand Configuration > CN=Configuration,DC=domain,DC=com > CN=LostAndFoundConfig. Right-click the lingering object and select Delete.
Run below Powershell commands as admin to remove lingering objects:
ntdsutil
metadata cleanup
remove selected server <ServerName>
quit
quit
Open ADUC. Right-click the domain and select Raise Domain Functional Level. Select Windows Server 2016 and click Raise.
reference:
Have a nice day.
Best Regards,
Molly
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it