Hi umairzarar,
Good day,
Are your firmware version currently on WW-14.0400.1901.062?
If yes. I would suggest you clear data and cache on the camera app.
(settings>apps> camera> storage > clear data and cache)
If this problem still exists, for exclude caused by software, please kindly try to backup phone files and factory reset.
Sorry for any inconvenience.