I used the following commands to fix the problem:

diskpart
list disk
select disk #
clean
create partition primary
select partition 1
active
format quick fs=fat32
assign
exit

I then re-ran the tool without any errors.