My wife had a P8 and P9 and I think if you change enough badly explained settings you should be able to stop it. VLC pulled support for Huawei in frustration over this:
I am 50/50 on if I like this feature as stock Android's battery management has always been so weak that the big brands built their own task management layer so you now have doze mode and whatever the manufacturer adds. Samsung have something similar.

