Live bokeh nokia 5.1 plus bug

Recently i have updated my nokia 5.1 plus with may 2021 patch since then i noticed a bug. Whenever i open camera and chooses live bokeh or panorama mode camera freezes and crashes. After few minutes i tried to open camera it shows camera cannot connected. After this i can't see flashlight in notification bar (greyed out). Once i restart the phone it seems ok. But still if choose live bokeh (or) panorama mode this issue repeats. Can anyone tells what's the problem with the phone. Is it a software error or hardware error? I have tried clear cache, clear data, and factory reset. Nothing solved the issue