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.
Daily Driver > Samsung Galaxy s²² Ultra 256Gb in Phantom Black.
The advice I offer is my own and does not represent Samsung’s position.
I have no affiliation with Samsung.