"Can't connect to camera", Nexus 6 - Lollipop 5.1
The phone is back from the service center and it works fine again. They told me that they had to replace the camera unit. It took them more than 2 weeks to get this done though. The people there were not aware of the actual reason for the issue to occur, neither were they concerned. But I'm happy that it works now.