Hi Tharun. Did you do anything with the phone recently? Or was it accidentally dropped? I'm thinking the connection between the battery and phone is perfect that's why it switches off. Since the battery is not removable, I suggest taking the phone to a service center so it can be checked.