Share the device's model number and the software version please.
If the above suggestion doesn't work then try booting in Safe Mode and see the issue is still there.
If the issue goes away, then it's likely an app that is causing the issue.
Otherwise, submit error report to Samsung Members after the issue occurs again. The techs at Samsung should be able to help better.