I have similar problem by my Macbook Pro 13" 2017.
Change different wire adaptor or monitor still flickering.
Finally I check the "Prevent your Mac from automatically sleeping when the display is off" and problem look solved, no flickering again.
Topic:
App & System Services
SubTopic:
Core OS
Tags: