While this error may be caused because of many reasons such as connectivity problems.
The first thing to check is, is the application msi can be installed manually on the a machine on the desired collection.
For example, the application may need a prerequisite such as .Net framework and it will not install till you install the prerequisite first. or the msi package may be corrupted and won’t install on the machine manually.
so, before you try to push an application automatically please be sure it can be installed manually.