By addressing the phenomenon of carbody abnormal vibrations in the field, the acceleration of the carbody and bogie was measured using accelerometers, and the diamond mode of the carbody was identified. The equivalent conicity of the wheelset and the acceleration at the frame end indicated that the shaking of the carbody was caused by bogie hunting. In the SIMPACK simulation, the acceleration frequency and amplitude at the frame end and midsection of the side beam were calculated. The lateral deformation amplitude of the side beam in the finite element model was extracted, and a modal shape function for the diamond-shaped mode was established. By utilizing the modal vibration equation, the modal generalized forces of the carbody were computed, revealing that, during carbody shaking, the yaw damper force contributed significantly among the forces of the secondary suspension, with the phase difference between the front and rear bogies approaching 180°. This insight offers a novel perspective for subsequent active control strategies. Subsequently, these modal generalized forces were applied as external excitation to a coupled vibration model encompassing both the carbody and transformer. Aiming to reduce the acceleration amplitude at the side beam, the transformer was treated as a dynamic vibration absorber, allowing for the optimization of its lateral suspension parameters. As a result, the lateral and vertical acceleration amplitudes at the side beam were concurrently reduced, with the maximum decrease reaching 58.5%, significantly enhancing the ride comfort.