I have had this happen to me a couple of times, but as I found out it was due to Steam maintenance which happens weekly and lasts for an hour or two, simply login before maintenance or wait.

Other than that, it will be your connection, I would open Microsoft Edge and make sure it is updated as the launcher uses it.