It is important to understand that QM is not saying that it is difficult to make the electron have an energy of 20 units. It is saying that an electron cannot have that energy. That is just how Nature works.