For Default (SeaBIOS) BIOS:
1. Edit VM's display settings and set video memory to 24 MiBs.
Graphic card: Default
Memory (MiB): 24
2. Select your preferred resolution in Ubuntu 22.04 Desktop.
For OVMF (UEFI) BIOS:
1. Edit VM's display settings and set video memory to 24 MiBs.
Graphic card: Default
Memory (MiB): 24
2. During boot hit Esc to enter UEFI BIOS and set Device Manager / OVMF Platform Configuration /
Change Preferred 1920x1080 / F10=Save / Y / Esc / Esc / Reset...