Hey man , this is just odd man , last night everything was smooth , the ssd was working , next morning today I wake up to it formatted again . It is a Kingstone 480 GB gray one , have it for a couple months now , I did have another one , same as this one that I sent in service for repair , but they ended up replacing it with the same one.Which ssd model you have how old it is.
Try change sata cable or sata power cable.
run hdd ssd in bios on ahci mode.
Have you load default setting after bios update it is must.
It's not formatted. It's unallocated. Not the same thing.next morning today I wake up to it formatted again . It is a Kingstone 480 GB gray one