I am running a 3KW motor on a big 24Vdc power supply (Meanwell RST-5000), through a frequency drive.
When stopping the motor, however, I occasionally get a regenerative backcurrent that trips the internal overvoltage protection in my power supply. The voltage ramps up to about 28.5V. The supply is protected against this, but it does have to be manually reset and breaks the workflow.

What is a good solution to prevent this? Can I just hook up a big (+- 100Ah) Lead-acid battery in parallel to the power supply? Or will this give me other issues?

Please keep in mind that there are huge currents involved (+- 125 A)