an app shuts down if it is updating itself, like FB
FB is updating almost everyday in the background
try disabling automatic updates
open Play Store → Settings → Auto update → tick never auto update
do the same with Galaxy store
should to the trick
I had the same problem after I transferred from my S20 Ultra to the S21 Ultra. After the xfer, I updated the FB app from the Play Store and the error would come up in Facebook when reviewing a post, going into settings, marketplace, etc. I cleared the data and cache, uninstalled the app, reinstalled from the Play Store and it works perfectly fine now. Not sure if that will solve your problem but it worked for me!