Since you tagged badblocks in your question, I assume you have some measure of familiarity with it. It can be run as a part of the e2fsck
program used to check Ext2/3/4 filesystems if the underlying partitions on the NAS use that filesystem:
e2fsck -c /dev/blockDeviceHere