Wow, I can't believe Samsung is STILL having that issue with their cameras.
All the way back to the Galaxy note 3 I had this issue, but it was _much_ worse. I upgraded to the note 5 and it still had the issue, but it was different and not as bad, then the note 9, rarely happened but still did. Note 20 I don't recall it ever happening but it may have once. Now on the S22U and haven't experienced it, so I thought they finally fixed it. Turns out not on the S23, go figure.
No, there's nothing you can do about it, except maybe taking it to a Samsung verified story and having them replace the camera unit, which will cost money to do.
The lens is trying to adjust for the intense movement and not cause so much bouncing from the movement, but clearly yours is failing like mine has often back then.
Hopefully this brought some light to you and anyone else. Unfortunately there is no fix software-wise.