How do I keep Microsoft from being a piece of $***?

It restarts itself and I always lose what I have open. How do I keep it from restarting until I want it to?

?2021-02-15T15:59:11Z

i fixed that by using Linux. it is far more versatile and customizable, and doesn't do stupid $#!+ unless you tell it to...