Hi.
Could be a hardware fault and best checked at a Samsung experience store.
Things to try.
1. Clear the cache under camera app settings under apps.
2. Closing all apps before using the camera.
Follow Me, like my posts and Mark as Solution if I helped solve your Problems.