I got the same problem , two monitors can work from boot until nearly to the login screen.
I had two monitor, one is HDMI connected, and another is VGA connected.
When I plug one VGA monitor , it also became black before login screen come up.
I install the 10.13.6 using monitor with HDMI...