Can I disable display of out-of-stock products in cross-sells, up-sells and related items blocks?
Yes, sure. Each block configuration has an option “Show in Stock Products only”. You need to set it to “Yes”, and out-of-stock items will be excluded.
See more details on Customers Also Viewed page