Associate parameter using Parameter.Associate

I want to link the parameters of each nested family of all families on a particular path.

I’ve connected the node as shown in the picture, but there’s an error

And when I opened the saved family, the parameters were connected incorrectly, as shown in the second

There are multiple nested families in a single family file, and there are multiple such families.

How can I apply the level to properly connect the parameters of the nested families?