I had this exact problem. 5 minutes after booting up, the computer would freeze.
turns out the Secure-Boot-Update scheduled task (something I didn't know even existed) was responsible.
triggering this task made the computer immediately freeze (reproduces the issue).
disabling this task made the computer work perfectly fine (works around the issue).
don't know what is wrong with the task, there is no useful information (that I could find) in system events. but this workaround may keep your machine running without having to reinstall windows.
- run task scheduler
- Microsoft / Windows / PI / Secure-Boot-Update <- disable the task.