Game simply will not launch, purchased through Steam

I had a “Please insert the Microsoft Flight Simulator Game Disc” problem in my MSFS that I bought from the Microsoft Store. I used to log into my PC with a local account. When I changed it to a Microsoft account, the problem went away.