This won’t work with the headless mode, since there is no virtual display present from the driver point of view.
It should set the windows size instead, with and option like "--window-size=1920,1200"
By default, headless mode I think will set it to 800x600 which is very small for most of the use cases.