Mongorestore - panic: runtime error: invalid memory address or nil pointer dereference

Hi,
I am using mongo version 5.0.18,
i am taking dump from oplog using below command

mongodump --db local -c "oplog.rs" --authenticationDatabase admin -u $usr -p $pwd --host $Hidden --port 27017 --query '{"ts":{"$gte": {"$timestamp": {"t": 1728392160, "i": 0}},"$lt":{"$timestamp": {"t": 1728393060, "i": 0}}}}' 

now i am restoring in a new server(launched from an old snapshot ) using the below command

cd dump/local
mv oplog.rs.bson oplog.bson

mongorestore --host host.in:27017 --oplogReplay --authenticationDatabase admin -u < > -p < > "mongodb://host.in:27017/?retryWrites=false"

got the below output

2024-10-08T13:06:28.096+0000	finished restoring local.oplog (635387 documents, 0 failures)
2024-10-08T13:06:28.096+0000	replaying oplog
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xaaaae94c1d8c]

goroutine 1 [running]:
github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreOplog(0x40003ec000)
	/data/mci/df7ad315045231dbb30dac99c27ab46c/src/github.com/mongodb/mongo-tools/mongorestore/oplog.go:87 +0x6c
github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).Restore(0x40003ec000)
	/data/mci/df7ad315045231dbb30dac99c27ab46c/src/github.com/mongodb/mongo-tools/mongorestore/mongorestore.go:586 +0x1770
main.main()
	/data/mci/df7ad315045231dbb30dac99c27ab46c/src/github.com/mongodb/mongo-tools/mongorestore/main/mongorestore.go:52 +0x2b0

I am stuck at this point as replaying oplog is failed
i am not able to see latest data in db
Please support in this.
Thanks in advance.