My friend put my sefarim in a bag that also had an underwear with zera in it I think some of the zera may have gotten in contact with the sefarim. Would this be a halachic issue? Should I have to throw out the sefarim or bury them?
No there is no issue with it, especially after it is dry. Just wipe it off.