I do not know a lot about computers, but when your computer shuts down or restarts by itself, then I’d guess that’s a problem with your computer…
Blender can crash. Blender can freeze your computer, but it can’t restart or shutdown your computer. Period! Mantaflow or no Mantaflow.
But that’s only as far as I know, so…