Depth Fade Foam tearing

I’m trying to make an ocean material which has a shoreline foam effect and foam from higher waves. The coastal effect works well but whenever I enable it i get terrible tearing on my water surface

This only happens if i make my material translucent and use the depth fade. The waves are being displaced using a material function based on the gertsner wave algorithme

Any help would be greatly appreciated