Looking at your video clips it seems it's not a software issue rather a physical issue with the OIS. Don't worry service centres will help you out without any charges.
Then I believe there's no physical damage to the OIS. But your phone is facing some different issue. If you bought it from a physical store visit it once else visit service center. I also faced camera issue when I bought my s24 ultra. They replaced t...