My laptop have virus and i cant copy the files to my pebdrive what to do

Does the pendrive recognize in another computer? If yes, try booting the laptop into safe mode and try copying the files again.

If no, try reformatting the drive (this will erase everything currently stored on the pendrive!!!). If it does not format, it may need to be replaced.

Thumbdrives do go bad over time. The newer ones are made to last a lot longer than the older ones were.