We couldn’t create a new partition or locate existing one error, while trying to solve install operating system error, On windows 10

I got a new hard drive and was prompted to download new operating system, created a bootable drive on my other pc using windows creation media, plugged it on my pc with new hard drive and while going through the setup I keep getting the we couldn’t create a new partition or locate an existing one even after trying to create one on command prompt. Disk part.[creating disk partitioncouldn’t create a new partition