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)

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.