There is no setting in nodebb to evict guest sessions earlier, you can control it for all sessions in the admin page under /admin/settings/user#session-time, also check your redis config and make sure it has an eviction policy set to something like volatile-lru, so once redis reaches maxmemory it starts evicting keys that are least recently used.