There are two causes to this error: the phone might be corrupted and the battery drains of the installed applications or you need a battery replacement because it's faulty. However, first perform a factory reset of the phone from Settings > Privacy > Factory Reset and then observe the behavior. If it's the same, replace the battery.