dropUnitDims is a transformation that rank-reduces the shape of operands of Linalg ops: dimensions of size 1 are removed. The transformation used to crash or produce invalid IR when dropping a dynamic unit dimensions. I.e., the dimension was statically detected to have size 1 because the dim size of another operand (mapped to the same loop) is a static 1.
This fixes #64977.