What do you guys do to prevent Lava and Water from touching in caves?

Trying to create a cave world gen datapack but having issues with water and lava generating touching, what do you guys do to prevent this?

Continue to help post