Then you have probably a file in the library that has an illegal filename or a corrupted file in the library.
Sometimes it will help to repair the library before trying to copy it.
I'm not sure, if your version of iPhoto supported to repair the permissions and the database: See: https://support.apple.com/en-us/HT201769
There are two possible ways to transfer the library to a different drive: Use cloning software like Carbon Copy Cloner or Super Duper to copy the library, or copy it piecewise - open the package and copy the files inside one-by-one, so you can identify any corrupted files and skip them when copying.
To copy in small steps, so that you can see, which file is causing the I/O error:
- Create a new folder on your destination drive. Call it "Photos Library Copy".
- Ctrl-click (or right-click) your current Photos Library and use the command "Show Package Contents". This will open a folder, showing you the files and folders inside your Photos Library.
- Copy these folders one-by-one to to the new folder on your destination drive. If one of these folders is giving an error -36, check how far the copying proceeded. The files, that have been copied are o.k. The file or folder, that should have been copied next will be the unreadable file. Probably the problem is caused by one of the files in "Originals". In that case look into the originals folder and copy as much as you can, while leaving out any file that will not copy.
When you are done, rename the copy of your Photos Library to "Photos Library Copy.photolibrary" (it should be the same filename extension as the extension of your original library) and open the library in iPhoto, Does that succeed?