After doing more tests, it seems that the error only occurs when there is a size: -1 somewhere. Somehow, find_disk_parts_v2 never gets called if all partitions have a size specified, so it reduces the impact.
After doing more tests, it seems that the error only occurs when there is a size: -1 somewhere. Somehow, find_disk_parts_v2 never gets called if all partitions have a size specified, so it reduces the impact.