Partition tool failed when installing

Disable secure boot and fast boot in your BIOS and also fast startup in Windows.
Take a look here what is important:

Bitlocker can also be a problem if you have enabled it.

You could try not selecting updates and drivers at installation and not connecting to network.

Did you check the health of your drive with a SMART tool?