Computer automatically shuts down and restarts itself

Last 3 days the shut down and restart is happening automatically.  It happened last night when Windows Defender scan started at the scheduled hour.  I checked Norton History to see if I can determine when the other shutdowns occurred and best I can determine is that Windows Defender is involved when it may have been updating.  WD has been running simultaneously with NAV for years - so why would this problem start now?  Thanks in advance.