Text this: Stability analysis of a rotating rigid body: The role of external and gyroscopic torques with energy dissipation