If a nucleus has too many protons, it will decay through beta plus emission or electron capture. In beta plus, a proton becomes a neutron and a positron and electron neutrino are emitted, and in electron capture, an orbiting electron is taken in by the nucleus and combined with a proton, forming a neutron and neutrino.