Vibration is coming from the pump.
There are kits that replace the rigid piping to/from the pump with flexible hose to minimize transmission of noise/vibration.
You can also use foam rubber to isolate lines.
I would be a little concerned about spray foam, as you may need to access that areaa in the future.