I use your code and it fix it for admin user but not for other roles like shop manager. I found a beter fix that works with every role.
if (is_admin() && function_exists(‘get_current_screen’)) {
$screen = get_current_screen();
if ($screen && $screen->id === ‘profile’) {
add_filter(‘woocommerce_customer_meta_fields’, [$this, ‘add_woocommerce_customer_meta_fields’]);
}
}
For sure this is a temporary fix