i have a 1st gen iphone se that for the most part works but it won’t turn off because the power button doesn’t work so i use the feature in settings to try and do it and instead of turning off it restarts and goes into a boot loop until i plug it in and then it boots up fully. it also turns off by itself randomly as if the battery has gone flat. could this be a bad battery or something else