Problem Starting Up My Windows 10 Desktop Computer

Job ID: 37576320

Budget: $10 – $25 USD

Device name DESKTOP-TBNFM6D
Processor Intel(R) Core(TM) i3-10100 CPU @ 3.60GHz 3.60 GHz
Installed RAM 8.00 GB (7.85 GB usable)
Device ID 0334C4DF-2DEE-401E-A453-E30F4EB12586
Product ID 00325-81840-60585-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

Edition Windows 10 Home
Version 22H2
Installed on ‎11/‎7/‎2020
OS build 19045.3803
Experience Windows Feature Experience Pack 1000.19053.1000.0

1. I connected some external drives, saved files to them, shut down the machine and removed them.
2. I started the machine, but when it went to the sign-in with your Microsoft gmail account, the box was all gray.
3. I powered it down and up, and it said restarting for a long time.
4. I powered it down, waited a long time, powered it up and it still said restarting.
5. I powered it down, removed the power line, waited and inserted it back.
6. I powered it up and it worked.

What was happening and why?
Related categories: Windows Desktop System Admin