This error could be caused by Time Machine.
Please try the following steps.
1. Go to "System Preferences > Time machine" turn off "automatic backup"
2. Turn on the terminal
3. Input command: "tmutil thinlocalsnapshots / 9999999999999999"
4. Reboot5. re-run the disk partitioning or Boot Camp