Damping mechanisms and order-to-chaos transition in the warm rotating Er-163 nucleus