Chosen Solution
I was using my phone normally and then it switched off and a white light started blinking and a triangle appeared. The battery was around 82% I have a Moto z2 Play
My best guess without being able to look at the device is that it’s a battery issue. How old is the phone? If it’s more than a few years old then it wouldn’t be out of the question for it to need a new battery. Other causes could be water damage or the device just simply dying on you.