I got an error using the stock camera app. The error is only present while trying to shoot a picture without HDR. Using other apps like Whatsapp for taking regular pictures still work without a problem.
Easy fix for the main camera is disabling the 'Enhance lowlight photos automatically' feature in your setting in the camera app.
This will not get rid of this error in Selfie mode.