Mine happened randomly and went away after restarting. It hasn't returned since then.
If the error keeps coming back even after updating and restarting, then I'd get it checked rather than repeatedly clearing everything.
I had a similar issue once. Closing the camera app completely and restarting the phone sorted it for me.