Try to follow some of the suggestions mentioned in: [Screen resolution issue](Screen resolution issue when running process in production environment - Help - UiPath Community Forum)
In our company we had a similar problem, and I solved it by changing the required screen resolution in the Azure VM (windows), in the Registry Editor:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration\XXXXXX\XX\XX
See:
How to change Azure VM (Windows) resolution - Microsoft Q&A