Screen goes black when trying to draw any kind of debug lines.

I’m using version 5.3.2, built from source code. Everything seems to work just fine until I try to draw any kind of debug line. Then the screen goes black if it on begin play. If I try to draw a debug line at runtime the screen starts to glitch out. I’ve never seen this before. Does anyone know what can cause this?