Hi,
I suppose your problem is exactly same as the case in the link I provided below. You are highly encouraged to read through it, simple steps are provided to solve the error. Also, just in case, make sure you install it at a place with stable internet connection.
Goodluck!
An Error Occurred While Installing a Package: NI-VPM
Fiona, NI