Okay, I solved this.
The libnvds_msgconv.so compiled with DeepStream 6.2 was actually corrupt (see my other thread about issues with compilation here).
I downloaded Deepstream 6.1, made my custom changes, compiled, and then mounted the resulting file to Docker container with Deepstream 6.2.
And it worked like a charm :-)