Hello,
Nope, because the WooCommerce plugin does not mark out-of-stock variations as out-of-stock if the product has a lot of variations, it adds this information only after form refresh once you chose the variation. We tried to change this from our side but with no luck. So, you may try to contact WooCommerce support if they could hide out of stock variations.
I found this topic https://wordpress.org/support/topic/hide-out-of-stock-from-variation-dropdown/ But plugin is paid and we did not test it with our theme, so don’t have information about compatibility.
Regards