Hello,
If you go to Configuration > General Options and scroll down to Screenshot API and select 'DXGI', this will remove the flashing. Another option (if you are using Windows 11) is to change the screenshot settings.
Look at method one at;
https://www.nerds-life.com/t/removing-yellow-border-around-screen-in-windows-11/76