An unexpected crash occurred while bulk writing a BadgerDB

What version of Go are you using (go version)?

$ go version

go version go1.16.7 darwin/amd64

What operating system are you using?

macOS Catalina 10.15.7

What version of Badger are you using?

v3.2103.1

Does this issue reproduce with the latest master?

Yes

Steps to Reproduce the issue

What Badger options were set?

ValueThreshold=1K

What did you do?

Bulk writing a BadgerDB

What did you expect to see?

Finish writing without an error

What did you see instead?

BadgerDB crashed:

unexpected fault address 0x33f00000
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x33f00000 pc=0x13b2a02]

...