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
rendering - Parts of the object disappear when it move away from the camera - Blender Stack Exchange
cycles render engine - How to draw grease pencil hidden behind VDBclouds, without being is always at the forefront? - Blender Stack Exchange
How to draw grease pencil on a surface (blender 2,75)? - Blender Stack Exchange
Grease Pencil Not Working: No Available Frame for creating Stroke - Talk - GameDev.tv
Is there a way i can make the grease pencil lines invisible whenever it's behind an object? : r/blenderhelp
3d view - Why does the grease Pencil Fill becomes transparent when zoomed out - Blender Stack Exchange
Grease pencil strokes greyed out when object is behind them (Draw mode) - Basics & Interface - Blender Artists Community
grease pencil - How do I get rid of the rectangle with the cross in the middle of my animation - Blender Stack Exchange
The Ultimate 2022 Guide to the Best Blender Add-ons - CG Cookie