You could try the troubleshooting tool via launching in the phone app in the dialer put *#0*#
Also there is a diagnostic test in your Samsung Members app under the GetHelp section.
The phone shoukd take pictures OK inside so a Samsung Service Centre can take a look too @Members_7TRg3ey
Daily Driver > Samsung Galaxy s²³ Ultra 512Gb in Phantom Black.
The advice I offer is my own and does not represent Samsung’s position.
I'm here to help. " This is the way. "