Momentum-resolved observations of the phonon instability driving geometric improper ferroelectricity in yttrium manganite