So I uninstalled Windows 10 from my computer a few months ago, and started using Ubuntu as my main OS. But, I've been having some issues with my graphics card on Ubuntu lately, so I decided to finally reinstall Windows 10.
I had already downloaded the ISO a while ago, and all I had to do was burn it to a USB. I've had quite a few problems while doing that, since a file (install.wim) was too large for a FAT32 file system, and only found out I could use NTFS instead about a day later.
I burned the ISO to the USB successfully. However, when I ran the installer, and I tried to make a new partition to install Windows on, the installer returned an error saying Windows cannot be installed to this disk. The selected disk is of the GPT partition style. I've searched online for a while, and the only solutions I could find were either: formatting the whole disk and making a new partition table (which I don't want since I want to dual-boot), or switching from Legacy to UEFI mode, which didn't work obviously because I already am using UEFI mode.
Now I have no idea what's the problem or how to fix it, and I haven't found a similar question here on superuser, so I decided to ask myself.