You could try …
First please put the phone in Safe Mode which disables your downloaded app's but let's your stock app's keep working. If the issues stop then this highlights a downloaded app as the possible issue. Come out of Safe Mode and start deleting your most recent downloaded app's one at a time until it stops.
Or as a last resort a factory reset after backing up and removing any relevant sd card.
Is the phone not still under it's 2 year manufacturing warranty ?
Current Phone > Samsung Z Fold³ 5G.