Nevermind, found the problem.
Thank you for joining the Intel communities.
I’m glad that your issue has been resolved; could you please let us know how did you resolve the problem? That can help solving somebody else problem
The problem was coming from the BIOS. I installed windows on the legacy BIOS which I guess messed up my system. So I realized that I should try the only thing I didn't do, change the BIOS system into UEFI boot which actually worked and still does.
I hope it helps.
Thank you for sharing that information with us, I hope this can help other customers.