Yes. You simply add an accumulator tank like this one:
https://www.amazon.com/Seaflo-Pre-Pr...94358144&psc=1
Adding two works even better. Place this where it cannot be valved off from the water heater, such as on the cold supply line. Tee it into that line, near the WH.
I used two. The brass Tee between them connects to a Tee in the cold line before the WH. Use a plumbing pigtail, for undersink connections, to connect them.
Adjust the pressure to slightly higher than the "cut-in" pressure on your pump, typically, about 35 PSI, or so. This should limit the pressure rise to about 20 or 30 PSI. it will significantly reduce the stress on the system and it will stop the pressure relief valve from leaking.