You can repair the VHD image with "VBoxmanage internalcommands repairhd --filename <vhd image> --format VHD". VHD images have a footer at the end which gets overwritten when the image is expanded.