I suspect that the following analysis of the case where $m = n$ and $X = I$ might be helpful. We have
$$
ABC = I \\
(AB)C = I\\
C(AB) = I\\
CA = B^{-1}
$$
Thus, we have $ABC = I$ if and only if $AC = B^{-1}$. Note, however, that knowing $CA$ is not sufficient to determine $AC$.
In particular, for any invertible matrix $A$, the unique associated matrix $A$ that results in a solution to the equation is $C = B^{-1}A^{-1}$. With that, we see that $AC$ can be any matrix of the form $AB^{-1}A^{-1}$. That is, the possible results of $AC$ are the matrices that are similar to $B^{-1}$.
For a concrete example, take
$$
B = \pmatrix{1&0\\0&2}.
$$
We find that $CA$ is necessarily equal to $B^{-1}$, but $AC$ can be any $ 2\times 2$ matrix whose eigenvalues are $1$ and $1/2$.
In order for the set of possible matrices $AC$ to consist of a single unique answer for the case considered here, it must hold that $B$ is a multiple of the identity.
For the more general case that $X$ is invertible: begin with the equation
$$
ABC = X
$$
For a specific invertible matrix $A$, the corresponding solution $C$ is
$$
C = B^{-1}A^{-1}X.
$$
Thus, we compute
$$
AC = AB^{-1}A^{-1}X.
$$
In other words, $AC$ can be any matrix similar to $B$, multiplied by $X$. Because $X$ is invertible, we see that there is a unique possible result $AC$ if and only if there is a unique possible result for $AB^{-1}A^{-1}$, which occurs if and only if $B$ is a multiple of the identity matrix.
So, again, we find that $AC$ is uniquely determined if and only if $B$ is a multiple of the identity.