Here is what worked for me I can not guarantee that it will work for everyone though and it will also wipe the whole HDD
Note that if you have more than one HDD or SSD unplug all except the one you're going to install windows one
Shift+F10 in the windows 10 setup
when in cmd type the following in the following order:
"diskpart"
"list disk"
then there should be one HDD on the list, for example "disk 0" then type
"select disk 0"
"clean"
"exit"
And then it worked for me at least