I want to revive this old thread since my 2015 retina iMac developed this problem probably due to heat?
This gave me headache and since I do not use dark mode I always looked into some pinkish gradient.
Then I stumbled upon a post on iFixit:
https://de.ifixit.com/Antworten/Ans...+display?permalink=answer-800015#answer800015
I think that the actual tape around the display might have loosened over time and so I used duct tape to tape over the existing black tape. First I taped over the left and right edge and then the upper and lower.
Unfortunately I have no pictures but it really made a huge difference and the display is now bearable again.