To my knowledge, that error is basically saying that the session window is locked or not exists. Please follow BP recommendations and configure persistent runtime resource (RDP should not be used).
Another tip is to also check the GLOBAL security policies of the robots group, avoiding any potential overwrite.
Login Agent can be a workaround to tackle this problem, but not resolving it.