If this was my situation I would suggest to put the phone in safe mode which turns off all your downloaded apps and leaves the stock ones alone which can help to determine if an app is causing this situation.
If it stops in safe mode then cone out of safe mode and delete your apps with the most recent one at first.
If it does not stop in safe mode then I would create a back up and Factory Reset as a last resort.
If no joy then a Samsung Service Centre will be able to help you further with this situation.
Current Phone ~
Samsung Note 20 Ultra 5G SM-N9860_256Gb SnapDragon 865+
Samsung One Ui 3.1/ Android 11.