I don't know what to do. There was only one other person with this problem and the solution was.. there is none and you should render in the viewport. In the viewport it looks exactly as expected but
Fix Grease pencil depth issue in render & lineart draw over other grease pencil objects
rendering - Grease pencil stroke on 3d objects disappears when camera is too far away (unsolved problem dated back years) - Blender Stack Exchange
rendering - Grease Pencil weird render - Blender Stack Exchange
Grease Pencil Status Update — Developer Blog
BIM modeling using greasepencil - Page 2 — OSArch
rendering - Is there a way to render grease pencil without the reference object - Blender Stack Exchange
rendering - Grease Pencil Render Error - Blender Stack Exchange
Grease Pencil lines disappear when moving camera - Basics & Interface - Blender Artists Community
rendering - Grease Pencil Object disappears in Compositing - Blender Stack Exchange
Grease Pencil Status Update — Developer Blog
Blender Grease Pencil: A Powerful 2D Animation - Betasetup
3d view - Greasepencil strokes disappear behind geometry when rendering - Blender Stack Exchange
Grease pencil line art looks horrible in viewport but it's fine in the render? : r/blenderhelp
Major Grease Pencil Improvements! - Blender 2.8x development - BlenderNation