How do I stop a PC from restarting

I assume my laptop restarts itself now and again, to be ever so helpful and do updates. But I am not sure as there is no report other than losing my place in everything I had open.
I am bad, I leave tons of tabs open, have dozens of emails open, documents, spreadsheets, etc., all open. The ultimate multi-tasker. I get quite cranky when I have to reset everything and the save feature is not always correct, I have caught irksome spreadsheet errors with things missing due to a restart and failed save.
My computer does that thing that I read about online where any time I start it (or restart) once I open Windows it takes a 15 minutes to index the disk, so on task manager disk usage shows 100% for that time and the computer is useless. I prefer to restart on my schedule as simple restarting does not address that disk usage issue.

How in the world do I stop Windows from helping me by restarting at it’s own whim? Usually when it’s in sleep mode.

(A) Schedule the updates for when you’re not using the computer, like overnight.
https://support.microsoft.com/en-us/help/4028233/windows-10-schedule-a-restart-or-pause-updates

(B) Autosave your work.
https://support.office.com/en-us/article/use-autosave-and-autorecover-to-help-protect-your-files-in-case-of-a-crash-551c29b1-6a4b-4415-a3ff-a80415b92f99

Post # 1 is essential for you.

To save startup time consider doing fewer tasks at once so you can close out a lot of open features when you let the computer sleep. It is opening up all of your current tasks without being able to let you get back to just one or two. Focusing on fewer tasks in a sitting may save you time over trying to attend to too many things at once. Finish one thing, or put it aside (ie close the tabs et al after saving) before starting another. Your computer can’t restart one task for you to work on while it starts others- everything gets reopened before it lets you get going. Not a computer person but there must be a way for you to organize things so you can open them sequentially.