I am facing the same problem with a Mac Mini, TB display, with some extra memory modules in the Mini.
Not really sure, probably Samsung.
My guess is, that some of the memory modules produce too much heat. And the extra heat is causing the problem. This might be the cause, the reason itself could be that some of the circuits which are driving the display inside the machine do not like this much extra heat produced by some lesser memory modules.
I did not have this problem for cc. two years, and then it started. I have used lots of computers (mostly MS Windows) during my life, quite agressively (e.g. lots of VMware, hours, days of agressive high porcessor usage), and my experience had been, that after one year almost all of the machines got quite dirty of dust inside, or the components just dried out, and started to overheat (laptops and desktops alike). I did have lots of hardware problems because of this, burnt motherboards, motherboard changes, fan changes, etc. Well, this was the MS era. It is now over.
So either you change the memory modules to the recommended ones, or use some software to do a more energetic cooling of the machine. More energetic then the one what Apple designed for the machine.
This is my second Mac Mini now, still very agressive usage, also VMware, both Minis are working great (well with just this one glitch with one of them).
My try now is that I started using smcFanControl 2.4 free, and when the temperature gets too high for my taste, I click a higher fan rotation speed. As an extra bonus, I can also constantly monitor the inside temperature.
So far this helps me, and the problem is now rare. But still exists, I just do not like to run the fan speed on high...