It is said that most of what we call "mass" of nucleons are in fact from the kinetic and binding energies of quarks, and that the rest mass of quarks, from the higgs mechanism is much smaller compared to the nucleon.
There are other examples, like the binding energy of a nucleus, that show how energy contributes to the mass of things in the subatomic world.
My problem arises from the fact that it is also said that the gravitational effects are not really affected by how fast the object goes. Thus, a object won't get infinitely attracted to a planet even it goes at the speed near light. This seemed different from the previous examples, since in those cases the energy did affect the mass(in the classical way), which is basically what builds us up.
What would be a appropriate way of understanding this discrepancy? Thank you for your time in advance.