Default [Q] camera running into a loop when taking videos!

hi,

when I stop taking videos my camera will display "please wait" while saving the video and return back to new video taking mode but sometimes it is getting into look and "please wait" writing never disappears. I wait 10-15 mins and i get the error message "camera is not responding.. do you want to stop it". If i stop it, video is corrupted and i cant open it neither on android or on PC. what is causing this and how can I solve it? It happens very often.

thanks.