Autologin fails sometimes

I am using Manjaro sway and as far as I remember I have set up autologin by adding these lines to /etc/greetd/config.toml:

[initial_session]
command="sway"
user="myusername"

Since a couple of weeks (or months) once in a while the greetd login screen shows up on boot instead of automatically logging in my user. At least I think it is greetd, this is what it looks like:

Is there a way to guarantee that the login screen is not displayed?