Chosen Solution

I replaced the battery but I’m having the same problem, the phone shuts turns off at 50%. Did I get a bad battery?

Sounds like a bad battery to me.

There was an lawsuit against Google and Huawei regarding this phone model because of reboots and batterydrain issues. Basicly your whole device might just be bad, PCB problems probably. https://www.xda-developers.com/google-huhttps://www.classlawgroup.com/nexus-6p-b

Well how can I tell if it’s the battery or the phone, I purchased the battery from ifixit