I've done thousands of these over the years, not so much anymore but over the years..
Here is what it could be.
#1- BIOS is set to UEFI when HDD is configured for BIOS or vice versa.
#2- HDD is not seated correctly in the cradle, or needs to be reseated.
#3- HDD Failure is iminent.
#4- HDD needs new firmware as this is a bug, or laptop needs BIOS firmware updated. Firmware usually fixes stuff like this, if it is indeed a false positive and a bug.
I would update all the firmware, reseat the drive, and go from there. Laptop SATA or m2 drives are pretty dirt cheap so they can be considered disposable and easy to replace.