MongoDB 3.6 crashed due to invariant() failure
It looks like the problem is not with your physical memory. 

What is the RAM size you are using? Are there any other applications that are consuming more RAM memory?

Refer the below thread for more details

Invariant failure: seekRet resulted in status