The camera module was designed that way intentionally. Being able to move slightly in its housing protects the stepper motor. You can press the retract camera button in the settings tray to retract the camera in these situations.
Do you feel like swinging the phone 12-15 times is a normal use case for you?
The camera will be fine, granted if any phone is swung hard 12-15 times a day for a year some things might go haywire. And if anything does go wrong, the camera is covered by the warranty.