Corollary 2. Take $f,g,h \in \mathcal{O}[X]$ such that $\deg g = n$, $\deg h = m$ and $\deg f = \deg g + \deg h = n + m$. Assume that there exists $\varepsilon \in (0,1)$ such that $\left\|f - gh\right\| \leq \varepsilon\left|\text{Res}(g,h)\right|^2$ and $\deg(f - gh) \leq m + n - 1$. Then there exist $G, H \in \mathcal{O}[X]$ such that $f = GH$, $\deg(G - g) \leq n - 1$, $\deg(H - h) \leq m - 1$, and also $\left\|G - g\right\| \leq \varepsilon \left|\text{Res}(g,h)\right|$ and $\left\|H - h\right\| \leq \varepsilon \left|\text{Res}(g,h)\right|$. (Obviously $\text{Res}$ denotes the resultant here, and $\left\|\cdot\right\|$ the Gauss norm.)
To prove this: write $G = g + \xi$ and $H = h + \eta$ where $\xi$ and $\eta$ are polynomials with coefficients in $\mathcal{O}$ and have degrees $\leq n - 1$ and $\leq m - 1$ respectively. Then $f = GH$ if and only if $f = (g + \xi)(h + \eta)$. It can be seen as a map from $\mathcal{O}^n \times \mathcal{O}^m \to \mathcal{O}^{n + m}$ given by polynomials.
So consider the map $\Phi: (\xi, \eta) \mapsto (g + \xi)(h + \eta) - f$. We have also
$\text{Res}(g,h) = \det((\xi, \eta) \mapsto g \xi + h \eta))$.
It is easy to see that the theorem above then gives the result.
As a corollary: if $f$, $g$ and $h$ satisfy $\overline{f} = \overline{g} \overline{h}$ - where $\overline{f}$ is $f$ reduced modulo $\mathcal{M}$ et cetera - and if $\overline{g}$ and $\overline{h}$ are coprime (this is a condition on the resultant!) then there exist $G,H \in O[X]$ such thatsatisfying the following conditions: $f = GH$, $\deg(G - g) \leq n - 1$, $\deg(H - h)\leq m - 1$, $\overline{G} = g$ and $\overline{H} = h$. Hence "a factorization over the residue field lifts to a factorization over $\mathcal{O}$" (under the right conditions).
Indeed, let $P(X) = \sum_{i = 0}^n a_i X^{n - i} \in K[X]$. Suppose WLOG that $\left\|P\right\| = 1$. Let $\mathbb{F}$ be the residue field and let $\overline{P}$ be the image of $P$ modulo $\mathcal{M}$. Set $r = \min \{n : \overline{a_{n - r}} \neq 0\}$. Then we have in the residue field the factorization $\overline{P}(X) = X^r \left(\overline{a_{n - r}} + \overline{a_{n - r - 1}}X + \cdots + \overline{a_0} X^{n - r}\right)$ and we can lift the factorization by Corollary 2, contradicting irreducibility.