net/mlx5: fix header modify action validation