The uncertainty principle is said to forbid the existence of electrons in the nucleus as its constituents. They are formed just prior to or during beta decay.
the energies which uncertainty principle predicts for an electron is in the range of 10 Mev or more, while the observed maximum beta-energies are about 1.1 tp 1.3 Mev for free neutron decays, and may be ~ 5-6 Mev for some nuclei. The closeness of values renders the argument rather weak, since the electrons will spend some energy in overcoming the attractive coulomb potential of the nucleus and may come out with less energy even if it originally had the energies as required by uncertainty principle.