Oh my goodness I am so sorry. This is just brutal for you and your loved one.
The Dr's can give him a number of things to calm him down and to let him sleep. The agitation can be adding to his shortness of breath.
I don't have answers other than to say a prayer for you both. Make sure you are taking care of yourself too as this can be so overwhelming. I am so sorry.