I'm trying to partition for bootcamp but it fails because of that error. I ran disk utility's first aid multiple times. And it's always fine.
What do I do?
Edit:
My mac is the newest imac from this year. The windows I'm trying to install is Windows 10 Pro x64.
diskutil list
anddiskutil cs list
, then post the outputs. Also include model/year of your Mac. The version of macOS and the version of Windows you are attempting to install. Also, you should remove all unnecessary external disks while trying to install Windows. You also might try running First Aid on the Macintosh HD while booted to Recovery Mode.