Will be pretty lame if there's not to be any solution to this from VLC's end and Debian 11 is released with a Mesa stack that still has this issue.
Someone suggested a possible workaround at VLC's end could be to pause the video before exiting. Is this a possibility, Rémi?