Macbook PRO 2017 touchbar - Screen won't turn on sometimes
These symptoms sounds like a flimsy display cable issue - where backlight shutdown occurs after opening the display to a certain degree. 

If so, you'd unfortunately have to get your whole screen replaced. AFAIK, Apple only has a replacement program for 2016 MBP models despite it affecting later models as well. Best of luck.