Problem using the camera of my Sony Xperia Z1

Hi! I just love the 20.7 MP Sony G Lens Camera of my Sony Xperia Z1. However, it is showing an error now stating that: "Camera is temporarily unavailable due to high temperature". It happens after some time of using and my phone seems to overheat. I can't use the camera again and I am really sad since I bought this phone so I can enjoy all the outstanding features of it. But it is giving me a headache. Can anyone help me? Thanks.
