I believe this is overall a very unfortunate constellation. a) Location (too close and in front of the window -> yuck) b) Installation situation: Heat pump on concrete base vibrates, possibly even hitting one or the natural frequency of the garage roof. In addition, the garage or the garage roof is poorly or not decoupled from the house at all.
Who plans something like this? Such things cannot be explained with common sense anymore.
P.S. I was annoyed for over a year about my house water system, which the plumber had only rudimentarily suspended decoupled on the wrong wall (against the agreement). As a result, it always droned unpleasantly in the bathroom when water was requested (toilet flush, outdoor faucet). With 3 hours of work and about €30 in material, I combined plywood, hard rubber mats, and soft rubber mats and now the system is almost inaudible (it was only structure-borne noise).
Maybe you can similarly (the heat pump is of course much heavier than a house water system) place different rubber mats under the concrete base of the heat pump to decouple it from the roof?