Effect of Beam Losses on Radio Frequency Quadrupole