So you bought it knowing the problem (thread since February in the forum) and Fairphone announced the bug will be solved in October update.
Look at Random Screen dimming (while brightness slider stays at 100%) after A12 update for solution and explanation of the phenomenon.