Obviously, because it exceeds the maximum value that the 16-bit variable can represent, changing the coordinate mapping method of Graphics may solve the problem.
This should be a design issue of GDI
You can change a mapping mode, for example, use one thousandth of a meter as the unit, then print more than 30 meters of paper.