Screenmanager Resolution changing after system crash

I am developing an sample app for a embarked computer running at a kiosk.
When battery fails the system shuts down abruptly and when the app is re-initiated, its width resolution is changed to 1:1 format. This change can be seen in Registry.

Screenmanager Resolution Width_h182942802 changes to 1280 to 800

edit: Width also jumps to 800 when a new monitor is added/removed while app is running.

To fix it, final user has to open Registry and setup a value manually, which is not ideal.

Coming from similar posts , this solution did not work for me. I don’t clearly understand why resolution is changing from the compiled built version, or why it persists to return to a wrong value.

Current building settings for resolution:

Which Unity version is this on?

2012.3.7f1

Just adding to the issue, eventhough I am expecting the app to restore or use default resolution as a permanent state, at every crash, secondary screen change (turns on/off), also if the screen rotates (it is windows os listerning to orientation events), the app will jump to 800 width screen. And by quiting the app at this point, Screenmanager will add a new variable overriding default resolution.

Can you upgrade to Unity 2021.3.9f1 and see if it fixes it? We had a known bug that caused the game sometimes misdetect resolution at startup.