Safe Mode is a common troubleshooting step, since it temporarily disables any 3rd party apps you installed. If the problem goes away in Safe Mode, then the problem is likely due to something you installed -- it can be tedious to narrow it down further, though, since that may involve uninstalling apps one by one until the problem goes away. If the problem persists in Safe Mode, that suggests a problem with the system.
How frequently does this happen? If it's fairly infrequent, it may not be feasible to test with Safe Mode, since it's tough for most people to go without the apps they installed for much longer than a few hours. But if it's pretty frequent, it's worth a try.
Here are the steps:
https://www.samsung.com/us/support/answer/ANS00062983/