Battery- or software-fault?

Hello,
Screenshot_2021-08-11-16-19-47
This happen “randomly”.
Is this a battery o software fault?

Thanks

Regards