Often can prevent the nausea but if it does not it at least is a soft substance that is easily thrown up and once expelled may stop the heavimg action.
Most problems with the dry heaving for me has always been my body getting a signal it is time to stop and if he is dry heaving there is no signal.
This doesn't help fix the likely stress/anxiety/mental aspect of what is going on but can help in other ways...