Laptop restarts while using LibreOffice in Win 10.

If I use LibreOffice for 5 min, my Lappy restarts and file is also not saved.
What am I doing wrong?