After the screen is locked for a period of time, unlocking with a password sometimes leads back to the user login screen (the previous user session has been terminated)

Hello, I am using Zorin OS 17 Pro, encountered a problem: after the screen is turned off (locked) for a period of time, and then unlocked by entering the password, it sometimes returns to the user login interface(the previous user session has been terminated).

sudo lshw -C video

*-display                 
       description: VGA compatible controller
       product: Rembrandt
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: /dev/fb0
       version: c7
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
       configuration: depth=32 driver=amdgpu latency=0 mode=3840x2160 resolution=3840,2160 visual=truecolor xres=3840 yres=2160
       resources: iomemory:7f0-7ef iomemory:7f0-7ef irq:76 memory:7fe0000000-7fefffffff memory:7ff0000000-7ff01fffff ioport:f000(size=256) memory:fc900000-fc97ffff
uname -a

Linux GTR6-Zorin 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Another thread recently said the same:

I have seen this before with Nvidia... But they have only Intel - you have AMD. Both Intel and AMD drivers are included in the kernel.