I just found the solution in another thread:
Just to be certain, could you please let me know if you have tried to set the JavaScript Variation Options > Closest container to .single-product
in the WooCommerce > Settings > EAN > Advanced section?
Kind regards,
Moshtafizur