I already asked this on math.SE, but didn't receive any response.
The following question arose when studying Hwang and Oguiso's Characteristic foliation on the discriminant hypersurface of a holomorphic Langrangian fibration.
Let $f: M \to B$ be a proper flat map of complex manifolds with connected fibers, and assume that the set of critical values $D \subset B$ is (set-theoretically¹) a hypersurface. Set $Y = f^{-1}(D)_{\text{red}}$, let $b \in D$ be a general point, and set $Y_b = f^{-1}(b)_{\text{red}} = f^{-1}(b) \cap Y$ as the reduced fiber over $b$.
How do I argue formally for the following statement?
After shrinking $B$ around $b$ (analytically), we may assume that the map $$Z \mapsto Z \cap Y_b$$ induces a bijection between the irreducible components $Z$ of $Y$ and the irreducible components of $Y_b$.
Intuitively, I think that because $b$ is general, the neighboring singular fibers $Y_{b'}$ for $b' \in D$ near $b$ "look alike", so they have the same number of irreducible components, which correspond to the irreducible components of $Y_b$, and together they form the irreducible components of $Y$. But I don't know how to make this more rigorous.
¹ I always think of $D$ as reduced. I don't know if there is any more natural scheme structure to endow it with.