There's a free battery replacement program for the models affected [1].
My phone was one of the affected, but never got around to take it to repair shop because I thought the few random shutdowns were the only problem.
[1] https://www.apple.com/support/iphone6s-unexpectedshutdown/