Hi
@jodz1122 and warm welcome to the community
👋I suggest go to camera > settings > reset camera settings
Wipe cache partition of the phone:
Turn off the phone, plug into PC, tv via USB, press and hold volume up and power button until samsung logo appears Then quickly release power button and keep holding volume up button until reboot menu appears then navigate with volume down button till wipe cache partition press power button to confirm restart your phone.
Check if it happens in safe mode as some 3rd party apps might be corrupted :
https://www.samsung.com/uk/support/mobile-devices/how-to-start-my-galaxy-device-in-safe-mode/Soft reset your phone:
Press and hold volume down and power buttons simultaneously for 7-10 seconds till samsung logo appears and release it.
Use samsung tutor remote support app :
https://www.samsung.com/uk/support/remote-service/If nothing helps, please reach out to samsungs support or repairs :
https://www.samsung.com/uk/support/repair/