Addressing Stiffness-induced Challenges in Modeling and Identification for Rigid-body Systems with Friction and Impacts