Creating an expression to link one transform effect scale to the other breaks.
Steps to recreate:
New project, new Comp. Add a solid and apply a Transform effect on the layer. Duplicate layer. Create expression link from the Transform effect (scale) to the other layer's Transform effect (scale). Error occurs.
It looks like it's not taking into account the Uniform Scale checkbox option above it and is trying to maintain split dimensions and not finding that other dimension as it's currently hidden/not applicable.