For a reaction $$a+X\rightarrow Y+b$$ in the book, Introductory Nuclear Physics by Krane, he has written that the total energy and the total momentum both in RHS and LHS remains conserved in Lab frame, i.e. $$E_a+E_X=E_b+E_Y$$ where $E$ represents the total energy i.e. kinetic energy and the mass energy. Also, he claims that $$p_a+p_X=p_b+p_Y$$ Now if we transform the equations to a new inertial frame, the equations might not hold true and actually the quantity $$E^2-p^2(=m_0^2)$$ should be conserved both sides in the reaction. But the conservation of $E^2-p^2$ comes from the Lorentz in variance of the rest mass.
What if the rest mass of the participating species isn't conserved in the nuclear reaction, then which quantity remains conserved in the reaction?