Beam loss caused by edge focusing of injection bump magnets and its mitigation in the 3-GeV rapid cycling synchrotron of the Japan Proton Accelerator Research Complex