Dockerd crahsed with golang gc exception "fatal error: index out of range"

Docker version 20.10.11
Golang version 1.16.10
Dockerd got crashed unexpectedly and the docker.log has the following back trace.

fatal error: index out of range

runtime stack:
runtime.throw({0x558b82b1200b, 0x558b84580960})
        /usr/lib/go/src/runtime/panic.go:1198 +0x71
runtime.panicCheck1(0x7fce4ee399a8, {0x558b82b1200b, 0x12})
        /usr/lib/go/src/runtime/panic.go:36 +0x8b
runtime.goPanicIndexU(0x1197448658, 0x400000)
        /usr/lib/go/src/runtime/panic.go:93 +0x34
runtime.heapBitsForAddr(...)
        /usr/lib/go/src/runtime/mbitmap.go:320
runtime.scanobject(0xc000069e98, 0xc000069e98)
        /usr/lib/go/src/runtime/mgcmark.go:1210 +0x325
runtime.gcDrain(0xc000069e98, 0x7)
        /usr/lib/go/src/runtime/mgcmark.go:1047 +0x1ba
runtime.gcBgMarkWorker.func2()
        /usr/lib/go/src/runtime/mgc.go:1288 +0x6e
runtime.systemstack()
        /usr/lib/go/src/runtime/asm_amd64.s:383 +0x46

goroutine 40 [GC worker (idle)]:
runtime.systemstack_switch()
        /usr/lib/go/src/runtime/asm_amd64.s:350 fp=0xc00049e760 sp=0xc00049e758 pc=0x558b813a5a80
runtime.gcBgMarkWorker()
        /usr/lib/go/src/runtime/mgc.go:1256 +0x1b3 fp=0xc00049e7e0 sp=0xc00049e760 pc=0x558b813598d3
runtime.goexit()
        /usr/lib/go/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00049e7e8 sp=0xc00049e7e0 pc=0x558b813a7d21
created by runtime.gcBgMarkStartWorkers
        /usr/lib/go/src/runtime/mgc.go:1124 +0x25

We are clueless on what has gone wrong, any help is much appreciated.
Also would like to know whether this is a known issue and has been addressed already in recent versions.
We can share the complete stack trace if required.