Hey there, I encountered a similar problem in the past. Perhaps you can try this solution: https://royals.ms/forum/threads/error-code-2147467259-found-the-solution.90276/ then proceed to run the “Full Screen Mode Client” located in the game folder.
This happens when your monitor is set to 59Hz instead of 60... Meaning with some monitors you can't play Royals.