Galaxy is blocking the computer from going to sleep if you are switched to the "Recent" tab of the client. Even if you close the window and it's minimized to the tray. Found it out after I left my computer here for 3 hours and wanted to figure out why the screen was still on.

Posted Dec 13, 2021, 4:56 PM UTC
This could explain why sometimes my computer is not going to sleep even though no windows were open. Thanks for finding it!
I tested it myself and it seems this is caused by banner about winter sale. After closing it there are no requests, even if Recent tab is active.
Thank you, this fixed it for me too. I was on the same exact troubleshooting path as the OP and I was just considering to disable Galaxy's autostart until the next update.
In case the banner returns, one can also change the "Starting page" in the General settings to set it to something other than Recents.
[deleted]
I had gotten to the point of learning it was GOG, but you went the extra mile; nice troubleshooting!