I have a 4k monitor and windows is set to display at 3840x2160.
When BG3 is started the resolution is set to the same (borderless winwow) and I have to manually change it to 2560x1440 as my PC is not really fit to play games in 4k.
This change is not stored and I have to change it again on every login.