@ychen solution provided from Microsoft, I did not tried yet. Hope this is helpful for you.
Solution: In some scenarios, Power Automate Desktop may run unattended flows in a lower resolution than the one used to develop the flows. As a result, some UI elements could be hidden from the screen and cause flows to fail.
To change the resolution in which unattended flows are run:
Navigate to C:\Program Files (x86)\Power Automate Desktop and open the UIFlowService.exe.config file.
Set the value of the Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionEnabled key to true.
The appropriate keys in the UIFlowService.exe.config file.
Change the values of the following keys to the proper screen resolution width, height, and scale, respectively:
Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionWidth
Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionHeight
Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionScale
Restart Power Automate Desktop.