The validate_config() function in vp9/vp9_cx_iface.c has the following checks:
RANGE_CHECK(cfg, g_w, 1, 65535); // 16 bits available RANGE_CHECK(cfg, g_h, 1, 65535); // 16 bits available
The maximum value of g_w and g_h should be 65536 (= 2^16), not 65535. This comes from the following syntax elements in the frame_size() function in Section 6.2.3 of the VP9 spec: