DO NOT attempt to rebuild a RAID 6 array with a drive that has media errors included.
It WILL cause inconsistent parity problems.
Assuming you have a backup, you have 2 safe options.
1. Remove both unstable drives and rebuild 1 at a time to 2 spares.
2. Remove both unstable drives, get a 100% sector by sector image from the drive with media errors on to a spare, then replace both drives to do a rebuild.
If you DON'T have a independent dedicated backup, then you have 1 safe option:
Remove all drives and make sector by sector images and then proceed to the above steps for rebuild.