Thank you for reaching out, I would recommend making sure all updates for the software and galaxy app are up to date. Also, I would recommend putting the device in safe mode to see if the symptom still persists. You can do so by following these steps.
Press and hold the power button until power off, restart, and emergency mode show on screen
Tap and hold on the power off option until it changes to safe mode, then tap on safe mode.
The phone will then reboot into safe mode. You will be able to check that it is by a grey transparent box in the bottom left of the screen that says safe mode.
If it continues to happen, I would recommend wiping the cache partition of the device following these steps.
Turn off the device.
Press and hold the Volume Up key and the Bixby key, then press and hold the Power key.
When the Android logo displays, release all three keys.
An 'Installing system update' message will show for 30 - 60 seconds before the Android system recovery menu options appear.
Press the Volume down key several times to highlight wipe cache partition.
Press Power key to select.
Press the Volume down key to highlight yes, them and press the Power key to select.
When the wipe cache partition is complete, Reboot system now is highlighted.
Press the Power key to restart the device.
Let me know if this helped!