Hello ELF,
One possible cause could be if you have "Adaptive Brightness" enabled. You could check and turn it off using an option in the tutorial below to see if this may be the issue.
https://www.tenforums.com/tutorials/70157-enable-disable-adaptive-brightness-windows-10-a.html
In addition, check to make sure you have the latest graphics driver installed.
Another possible setting to look at is to see how many minutes you have set for turning off the display, and your "Dim display after" setting in Power Options. By default, the screen will dim 10 seconds before the specified turn off display after time. If you have the turn off display after time set to one minute, then it could dim on idle and brighten on activity like this.
https://www.tenforums.com/tutorials/22691-change-turn-off-display-after-time-windows-10-a.html
https://www.tenforums.com/tutorials/108132-add-remove-dim-display-after-power-options-windows.html