Black lines on my Macbook pro screen
An intermittent issue like that could be as simple as broken wires, or cracked internal connectors, that make/break connection, which causes the unit to sometimes work, sometimes fail.

It would be prudent to send the unit in for repairs by Apple, and hopefully you have a Time Machine backup of your system.