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
animation - How do I get this rainbow to fade and disappear? - Blender Stack Exchange
How to convert a line drawn with a grease pencil into a 3D model.
Fix Grease pencil depth issue in render & lineart draw over other grease pencil objects
Grease Pencil Onto video - Blender Stack Exchange
2D Animation: Drawing new strokes makes the existing layer disappear? - Blender Stack Exchange
Grease pencil Failed to find materials with line art modifier on a blank stroke with Blender 3.1 - Blender Stack Exchange
Why the grease pencil object partly disappeared while rotating the viewport angle? - Blender Stack Exchange
2014 - Blender Sushi
grease pencil - Keyframes disappearing - Blender Stack Exchange
Grease Pencil Not Working: No Available Frame for creating Stroke - Talk - GameDev.tv
3d view - keep greasepencil strokes visible when zooming out (it's fading, not clipped) - Blender Stack Exchange
Is there a way i can make the grease pencil lines invisible whenever it's behind an object? : r/blenderhelp