MacBook Pro SSD not mounting; OS unstable
After 2 years of flawless operation, I awoke to a very hot laptop which, upon opening the lid, had a blinking question mark folder. Cycled power and everything worked fine.
After that incident, the blinking folder would reappear if the computer was left idle. Took the laptop, 2017 MacBook Pro with 2 Thunderbolt 3 ports, to the Genius Bar and was told that the hardware checked ok and that a system reinstall might help. I made a bootable installer thumb drive with Mojave, as I had no problems prior to Catalina, and proceeded to reformat the SSD. Computer booted but Disk Utility did not show the SSD for the Mojave install.
I randomly got the SDD to show after closing the lid and promptly reopening it. I was able to install Catalina from Internet recovery.
Now, when I power-on the computer, it has the blinking question mark. Control-R yields a successful boot to Disk Utility where all that is shown is a disk image.
If, at that point, I shut down the laptop, close the lid and after 20 seconds open it back up, I usually get a Catalina sign-in page and Disk Utility shows the SSD!
I have been through all of the NVRAM and SDC reset procedures. What do I need to do to get the computer to mount the SSD on start? When Catalina is running, the SSD shows in System Preferences<Startup Disk. When I boot from the thumb drive and it asks where I want to install Mojave, all it shows is the external drive. Thanks in advance for your help.
MacBook Pro