iPhone 5 issues while charging

When charging my iPhone 5 while it's switched off, the charging indicator does not disappear (or go to Sleep) and is therefore visible the whole time.

And, when charging my iPhone 5 while it's not powered off, the phone stops charging once the battery indicator hits 50%.

How might I troubleshoot this?
Welcome to iMore. As far as I know, there isn’t a way to charge an iOS device with it powered down. The moment you plug in to charge, the iOS device will power back on.
Have you tried putting it in airplane mode? I realize that’s not the same as powering down, but it’s an option.

Original thread: https://forums.imore.com/threads/iphone-5-issues-while-charging.417643/