OK, that ran in debug because running in debug uses a window that can be set to strange sizes like 522x403, however, without debug on that will run in fullscreen and modes like 522x403 aren't supported!
You need to set a flag in the Graphics command to specify windowed mode (see docs).
You need to set a flag in the Graphics command to specify windowed mode (see docs).