Gaming shouldn’t be a choice between choppy gameplay and high performance. With XFX Radeon™ RX 500 series graphics cards and Free Sync technology, it doesn’t have to be. Transform the most demanding games into a liquid-smooth, artifact-free, 4K cinematic experience with the highest performance at virtually any frame rate.
The resolution thing is saved in the VM XML file, so changing VirtualBox.xml won't work, you have to modify machine.xml, where machine is the name of the VM. You can set a resolution in the display settings of the OS, then in the Machine menu disable automatic resizing. That should keep the VM at 1024 x 768.