This is the 2nd Xperia Z to have this happen to. 1st one died after 2months. Was replaced with new phone as was unable to be repaired. 2nd phone lasted 1 month. Phone working well one moment then went dead.
Pretty sure you are not the only one having the problem. It's a glitch on the phone.