Hi
This one is going to be hard
Most cameras have something called OIS(Optical Image Stabilisation) which is a physical mechanism that helps counter shaking in the camera it self ,the only way of fixing a issue with OIS is to replace the camera itself as it if very fragile and precise
However if possible I would try resetting the device as it could a software issue as some cameras have something called EIS(Electronic Image Stabilisation)
This stabilises the footage through software which could also be your issue
Hopefully this helps
Any questions please ask
Thanks:-)