This happened to me when I was trying to install an npm package but misspelled it and got an error. That's when VS Code threw the GitHub sign-in pop-up. I had just committed, so I thought it was a weird pop-up. Signed in, authorized again, and didn't show up again so far.