The nucleus is complicated because many phenomena happen inside. You have to consider the numberer of particles, the distance between them and their energy. In general nucleus is strable when the electrostatic force is balanced by the nuclear force between the neutrons and the protons.