Please follow the below mentioned steps in order to resolve the issue:-
1) Clear the Cache of the camera (setting>>apps>>camera>>storage>>clear cache).
2) Do the reset settings of the camera (camera>>setting>>reset setting).
3) Do the reset app preference (setting>>apps>>three dots on the right top>>reset app preferences).
Then kindly restart the device and check the issue.
For further assistance, register your concern in Samsung members app (click on “+“icon>send feedback>Error report/ Ask Questions).
Team Samsung Members