Welcome to Health Care Magic
There are no specific medicine given for the heart that can cause protein depletion..
How did you conclude it is protein depletion? - were serum protein measurements done? and reviewed by the treating doctor? It may general malnutrition?
, hospitalisation, surgeries, depression
, appetite suppression from illness - are several causes that could have been responsible. Swelling may also be from heart failure or kidney
The treating doctor will be the best person to answer more...
Wishing speedy recovery