Hello,
WooCommerce does not have option to exclude the out of stock variation from the filter results.
Regards