Well, I sort of had a similar problem a few years ago. My computer had a non-SSD boot drive, a physical drive with spinning disk platters. The drive was inexpensive and wasn’t the highest quality. The platters would expand and shrink depending on the temperature. Booting a cold hard drive the disk platter shrunk enough so the drive couldn’t find Windows so booted into the bios. The bios didn’t show any problems so I rebooted. The drive had been spinning, the drive had become warmer, and the platter expanded enough to find and boot Windows.
Whenever a bios screen is displayed when booting, it is usually a hardware, electrical, or temperature problem, not a Windows or driver problem. Since the computer works fine sometimes and sometimes doesn’t, a component may be failing soon.