Lauda89 That is very interesting. Here's a few ideas/questions:
The flicker rate on your iPhone X is 250 hz (it flickers every 4 ms), which is well above the level that most people will get headaches. So maybe you're not sensitive to OLED flicker or any kind of flickering at high speeds (say, 100 hz or higher).
So if you ignore the huge dips and just focus on the top line of the graphs, you'll see a correlation between headaches and the variability of the graphs. Note that when comparing these graphs, you have to keep in mind that they have different scales for the Y axis, so you have to imagine what the graphs would look like if they had the same scale.
Iphone X (no headaches, pretty flat if you imagine what the graph would look like if the Y axis went up to 250 and not just 100.)
Macbook (no headaches, pretty flat)
Gaming pc (headaches, pretty ragged)
I find it really interesting that the output from your Macbook and gaming PC have different brightness levels and that the gaming PC has a more ragged line than the Macbook. I would start looking for differences in how the display works. I think you'd mentioned that one of them connects via HDMI and the other via DisplayPort. That could be worth experimenting with. But also you could look in the monitor settings (are these devices somehow using different monitor settings?). And also for the graphics card you could play around with different settings like make sure you turn off "eye care" and blue light filters and things like that. The good news is you can make various changes and test them immediately with your light meter.
Testing with other colors, especially light gray and light green could be interesting. Something called pixel inversion happens at 30 hz and many monitors flicker worst with light colors vs pure white.