So visit the user tip that I've suggested: Recover media from an iPod.
Recover all of the content that is on the device into your library.
Add any other iTunes compatible media that is on your computer into your library.
See DeDuper for a script to clean out duplicates.
See Make a split library portable to organize it properly on the external/remote drive.
iTunes is more reliable with locally connected external drives. Remote drives are more suited to backup.
See Backup your iTunes for Windows library with SyncToy to back it up.
Once all of your media is stored tidily in one place you can afford to erase and sync the device with a selection of content from it.
N.b. iTunes 12.7 cannot add iPod clickwheel games to a classic, and might not recover those that are on it either. If you need to extract any that aren't in your library, or add any that you have to the device, then you may need to install iTunes 12.6.3.
tt2