I was made aware that this might be a duplicate of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951194
and it indeed seems to be the same issue. However above report was closed in Feb 2020 with a comment that bug was believed to be fixed. If that's the case, the fix apparently didn't make it back to stable/buster, though.