Flash is not properly working at thethe same time mobile automatically switcheoff in moto g4pluse
Can you check the flash again before taking a photo, maybe you set it to automatic that's why it's not working sometimes.