So I made a gadget. You just need to paste the name list, choose Avery5163 or 5160, and he will generate a PDF by himself, and the size exactly meets the label specifications.
The most annoying part is the margin calculation. Avery's official specification is expressed in inches, and pdf-lib works with points, but 0:01 inches but the rounding error makes the label of the whole page deviate.
Technical stack: native HTML, pdf-lib to generate PDF, cf page hosting. Without back-end, all operations are completed in the browser.