Mongodb crashes after running for few minutes

Solution for Mongodb crashes after running for few minutes
is Given Below:

I’m new to mongodb. I’m facing a problem while running mongod command. It works fine for few minutes but crashes after few minutes. I don’t know why. Here is the error I’m getting:-

"msg":"Failed to open minidump file",
"msg":"*** immediate exit due to unhandled exception"

I’m using MongoDB shell version v5.0.1

I appreciate any help. Thanks.