Repeatedly getting folder with question mark after closing my macbook pro
Yesterday after not having used my 2017 Macbook Pro for quite some time, I attempted to start it up and got the flashing question mark in the folder. I followed protocol I found online re Recovery Mode and using Disk Repair--everything was fine. I downloaded and reinstalled OS Big Sur and eventually everything worked fine. Then I closed the laptop cover, and when I opened it again a few hours later, there was the folder with the question mark. I shut the laptop down, restarted, and the regular user choice came up and things were fine from then on. I was able to upgrade OS first to Monterey and then to Ventura, which I think is the latest OS that my macbook can handle. Then today I closed the laptop again, and when I opened it, there was the folder with the question mark again. I restarted, chose my user account, and all was fine again. I got the diagnostics from Apple but additional text will not let me attach it, so I'm trying a link apple diagnostics re problem closing and reopening laptop . What the heck is happening here?
MacBook Pro 13″, macOS 13.7