I have to change the battery (not original apple battery)
Why does my iPhone 5 automatically shut down after a few mins?
Ask a QuestionRefer to qualified service personnel...
As repairs go it NOT too bad at 79 dollars....
https://support.apple.com/iphone/repair/battery-power
https://support.apple.com/iphone/repair/battery-power
Original thread: https://forums.imore.com/threads/why-does-my-iphone-5-automatically-shut-down-after-a-few-mins.375974/