2017 MBP screen flashes green or yellow when waking from sleep
What version of macOS are you using? High Sierra + Metal did cause some issues. There is a Reddit thread about it: https://www.reddit.com/r/MacOS/comments/73nc9h/after_high_sierra_weird_colors_when_waking_up/

It is a software problem. Double check to see if the OS is updated.

Definitely visit the store if this persists.