Hi everyone,
Need help with this, just installed my m.2 on my laptop installed fresh os on it. Installed all my programs and used it for several hrs (note: while plugged on charger) then after i restart it. I receive the error "NO BOOTABLE DEVICE"
After checking my bios. My hdd, m2 ssd, and ram are all detected. See screenshot

Even when booting up my bootable USB , it detects both of my drives.

I dont know what to do, i tried the pin method on the battery for 30 secs , unplugging and plugging my hdd, but it still didn't work, the only thing i haven't tried is installing the os again. I'm hoping theres a fix for this, its really frustrating if im going to install an os and the problem will repeat.
Here are the settings on my bios, if any of it helps.

