There is no function for getting the MaxRequestSize on the Display. The code for put_pil_image() seem to be able to access this value as display.info.max_request_length, but something like that isn't exposed publicly.
https://tronche.com/gui/x/xlib/display/display-macros.html#XMaxRequestSize