Samsung has already confirmed the problem, it will be fixed by the April patch
Another issue with Samsung Galaxy S23: camera app crashes when trying to use zoom
Samsung has already analyzed the problem and concluded that this happens when the user “too quickly” switches between modes. The bug is promised to be fixed with a patch, and it is already there, but so far it is being tested within the software development team. For users, the patch will be released in April.