So I bought a new device and I've been experiencing this error whenever I try to launch the game. What I tried: Restarting the PC. Reinstalling the game, both wz and img files. Disabling windows defender + allowing it through firewall. Changing compatibility mode. Also downloaded other servers and I got the same error for them as well.
Have you tried adjusting the display Hz? https://royals.ms/forum/threads/error-code-2147467259-found-the-solution.90276/
I fixed it, the Refresh rate was indeed the problem, but I only updated my radeon drivers. Turns out i needed to update the intel graphics drivers as well to have other refresh rate options, changed it to 60hz and boom.
There are certain laptops or PC that require strictly 60 Hz to run Royals for some reason I am unable to replicate the issue on my laptop(s), able to run Royals on 60 and 144 Hz