Ocean modifyer only renders foam for two frames, then stops

Hi everyone, first time posting, hope I’m not making any beginner mistakes lol

I created an ocean with the ocean modifier. I set this as two dynamic paint canvas with waves, and paint. Then I rendered in a boat which I set as a brush. The boat follows the direction of the was with a plane that follows a path with shrinkwrap. Either way, I can view it in render view in viewport and the boat leaves the foam behind as I want, but when I render it through as a video (cycles and Eevee both have the problem), the foam only renders for the first two frames and then it disappears…

Does anyone have any idea why? And how I can fix it? Sadly, I can’t share the file because of privacy reasons…

Thanks in advance!!!