Back up your datas !!!
go to disk management
Right click on your primary partition-shrink it to make sure that all partitions created by extending it has been shrinked to it
Now use a third party disk partition softwares to partition them again and try installing OS
back up your datas before trying this