This problem happens on many apps including Reddit, Instagram, or even banking apps. If you keep getting logged out, first make sure your app is updated.
Old versions often cause bugs. Next, clear cache and data of the app from settings. Sometimes corrupted data makes it log out. Also check if your phone has battery saver or background restrictions turned on. Some phones kill the app in background, so you get logged out. Try turning off these restrictions. Make sure your account password is correct and nobody else is using your account because that can also log you out. Reinstalling the app can also fix it because it gives you a fresh start. If you use VPN, turn it off because apps sometimes don’t like VPN IP addresses.
Also check if your phone storage is full, because then app data can’t be saved. If it’s still happening, it might be a bug from the app itself, in that case report it to support team. In most cases, clearing data and reinstalling solves this problem.