Zero divisors in $\Bbb Z_n$ needn't be factors of $\,n,\,$ e.g. $\,6\mid 4\cdot 9\,$ but $\,4,9\nmid 6.\,$ Yes, we can force it true by choosing smaller factors of each factor, as follows. $ $ Suppose that $\!\bmod n\!:\ ab\equiv 0\,$ for $\,a,b\not\equiv 0.\ $ Let $\,k =\,$ additive order of $\,b.\,$ Then $\,a\cdot b\equiv 0\equiv n\cdot b\,\Rightarrow\, k\mid a,n\,\Rightarrow\,k\mid (a,n),\,$ so $\,(a,n)b\equiv 0.\,$ Similarly we deduce $\,(a,n)(b,n) \equiv 0,\,$ where, indeed, $\,(a,n)\mid n,\ (b,n)\mid n;\,$ e.g. applying this to the above we get $\, 6\mid 4\cdot 9\,\Rightarrow\, 6\mid(4,6)(9,6) = 2\cdot 3,\,$ where $\,2,3\mid 6$.
Thus if $\,n\,$ fails Euclid's Lemma (Prime Divisor Property) $\,n\mid ab\,\Rightarrow\,n\mid a\,$ or $\,n\mid b,\,$ the above yields a constructive proof that $\,n\,$ is composite, by constructing a proper factor $\,(a,n)\,$ of $\,n.\,$ Indeed, $\,(a,n)\ne n\,$ else $\,n\mid a,\,$ and $\,(a,n)\ne \color{$c00}1\,$ else $\,n\mid (a,n)(b,n)=(b,n)\,\Rightarrow\,n\mid b.\,$
For example, given any polynomial $\,f(x)\in\Bbb Z_n[x]\,$ with more roots than its degree, we can quickly compute a nontrivial factor of $\,n\,$ via a $\rm\,gcd.\,$ Said failure of Eclid's Lemma is sometimes described with the language: $\,ab\,$ is a witness that $\,n\,$ is composite, i.e. $\,n\mid ab,\ n\nmid a,b$.
Said algebraically: not prime $\,\Rightarrow\,$ reducible or, contrapositively, irreducible $\,\Rightarrow\,$ prime. Since the converse always holds, we conclude: $\,\Bbb Z/n\,$ is a domain $\iff n\,$ is prime $\iff n\,$ is irreducible.
This idea is sometimes used in integer factorization algorithms to deduce a factor of $\,n\,$ from a "nontrivial" factor of a multiple of $\,n.$
The above constructive proof also generalizes to certain ideals, namely
Theorem $ $ If ideal $I\ne 1$ satisfies: ideal $\,J \supset I \Rightarrow J\,|\,I\,$ then $I$ not prime $\Rightarrow I\,$ reducible (properly).
Proof $\ $ $I$ not prime $\Rightarrow$ exists $a,b \not\in I$ and $ab \in I.$
$\ A := (I,a)\supset I \Rightarrow A|I,$ say $I = AB;$ wlog we may assume $b \in B$
since $A(B,b) = AB\,$ via $Ab = (I,a)b \subset I = AB.$ The factors $A,B$
are proper: $A = (I,a),\, a \not\in I;\,\ B \supset (I,b),\, b \not\in I.\quad$ QED