Shutting down and Flashlight intermittently not working

A friend of mine has a iPhone 11 and is having issues where it shuts down every once in a while and has had issues with the flashlight not functioning. I was considering a battery replacement, but I am unsure if that is the best first step. I have the skills to do so but would like it to be a one and done repair not something I have to go back to if a new battery doesn't fix it. Any thoughts would be appreciated! Thank you!

Edit: He had the battery replaced on it about 2 weeks ago due to it shutting off etc. but the problems are still happening. Please advise.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 1

crwdns2942205:01crwdne2942205:0:

Does the phone shut down? Or restart (does it come back on again once it crashes)?

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0