Sometimes when Spotify gets a glitch, like Spotify is down suddenly or the app just gets corrupted, unexpected errors like the 'Spotify logged me out of all devices' would happen.Your devices are not connecting with a stable network so Spotify fails to perform normally and just won't let you log in.Consider if your Spotify account has been hacked so Spotify logs out everywhere suddenly.
Overall, there can be several possible causes that may lead to the 'Spotify logged me out of all devices' error: