Divi Theme and woocommerce_product_query not working

I am calling woocommerce_product_query but is not working in Divi theme.
I checked and it works with other built-in wordpress themes.

I am using Query Monitor and I can see that its fired correctly but still I get all products and not the one I hardcoded in post__in.

Here is my code:

add_action( 'woocommerce_product_query', 'my_pre_get_posts_query', 9999 );
function my_pre_get_posts_query( $query ) {
    
    $meta_query = $query->get( 'meta_query' );

    
    $query->set( 'post__in', ['245374','245372'] );
}

Is there any known interference with Divi? What can possible go wrong? I checked both with parent and child Divi theme.