I’ve started having this issue on my Xperia 10iii recently. I’ve always had the odd occasion when the camera refused to take a photo but it seems more prevalent recently. This seemed to coincide with the 4.6.0.13 release however that may be a red herring.
It is very frustrating.