Can you first try a soft reboot by turning the phone Off and On.
See if that resets it to then let you.
If it doesn't then put the phone in Safe Mode which disables your downloaded apps and leaves the stock ones working and then see if it let's you.
If it does then one or more of your apps are causing this and may need their preferences changing or the app deleting.
If it still does not in Safe Mode then consider backing up then remove any relevant Sd card and factory reset.
If it still doesn't then use a Samsung Experience Store or Samsung Service Centre.
Current Phone > Samsung Z Fold³ 5G. > Software : Android 12 ~ Samsung One Ui 4.