A change to your display brightness is caused by the switch of the active power profile.
To fix it, you need to adjust the brightness for the power profile ‘Bitsum Highest Performance’, and any others you may use, to match your desired settings. To do this, go to the Windows ‘Power and sleep settings’, then click ‘Additional power settings’, then change the power profile settings as desired (you may have to click ‘show additional plans’).