Really starting to hate the Nexus 6P

Really starting to hate the Nexus 6P. Google and Huawei need to sort out this battery problem, having my device shut down randomly anywhere below 40% charge is just unacceptable.