Sixty decades ago, a report said ultrasonic cleaning is damaging to electronic parts. This report was from the air force. The basis of the said report was the damage done to the semiconductors that were cleaned using an ultrasonic cleaner. At present, this is no longer an issue.
Electronic parts can now be safely cleaned through ultrasonic cleaning. There are two reasons for this. One reason is that many ultrasonic cleaners of present time have a feature that ensures items do not vibrate while the cleaning process is ongoing. Another reason is that electric parts are now not affected by strong vibrations. Should the ultrasonic cleaner used not have a feature that keeps items from vibrating, the electronic parts will not be damaged by the cleaning process.