Well I know that the camera rattle isn't an issue it's just the sensor or the stabiliser. But my question is will shaking the phone hurt the stabiliser or the sensor?
For example running when your phone is in your pocket it will probably rattle. Is that harmful for the camera?
The phone's go through many different types of rigorous testing @Arian1977 before being released.
As some use their phone's when exercising i.e running I'm sure testing how the camera module holds up is one of them.
Current Phone ~Samsung Note 20 Ultra 5G SM-N9860_256Gb SnapDragon 865+ Samsung One Ui 3.1/ Android 11.