Install on Windows 10, Virtual Box

Trying to move HA from one computer to another. I have installed HA on virtual box multiple time with no issue. I now get an error (see below), there is over 200 gigs of space available , I can write other files to space no problem, instalation instructions mentions, By default, VirtualBox does not free up unused disk space. To automatically shrink the vdi disk image the discard option must be enabled:
VBoxManage storageattach --storagectl “SATA” --port 0 --device 0 --nonrotational on --discard on. Where and how do I do this? Is this cause of problem

An error has occurred during virtual machine execution! The error details are shown below. You may try to correct the error and resume the virtual machine execution.

The I/O cache encountered an error while updating data in medium “ahci-0-0” (rc=VERR_INVALID_PARAMETER). Make sure there is enough free space on the disk and that the disk is working properly. Operation can be resumed afterwards.

Severity: Non-Fatal Error

Command prompt, same folder as VBoxManage