SIGN IN NEEDED

Last week, I was logging in to play Forza Horizon 5, but I encountered an error. It said I had to log in. I researched and found a solution, and I thought I had solved the problem forever, but the next day, when I tried to log in to the game, I encountered the same error again. How can I permanently eliminate this?