This is probably one of these two upstream bugs:
https://github.com/flameshot-org/flameshot/issues/4402
https://github.com/flameshot-org/flameshot/issues/4401
I think probably the first one.
Reverting to v12.1.0 (built from GitHub) makes the problem go away.