This is probably this upstream bug:
https://github.com/flameshot-org/flameshot/issues/4298
It's apparently fixed in the current GitHub source.