I just found a solution by myself, I'll post it here if it can help someone. I try to plug my SSD in another sata port on the MOBO and it worked. Aparently, when the M.2 is connected, it also occupies 4 sata ports on the MOBO so I tried another sata port and everything works perfectly now.