Device automatically gets locked while using it. Changed power button in hope that it will fix the issue but didn't worked. Happens same in the safe mode. Tried factory reset too but still problem is same.