Try blocking out both shapes before connecting them and use the existing geometry in the curve as part of the support loops around the base of the intersecting cube. That way the support loops on the intersecting shape can flow directly into the edges of the underlying curve without disrupting the segment spacing.
Here's a quick overview of what that could look like.
Below are a couple of links to other write-ups that cover relevant topology routing examples in greater detail:
Replies
https://polycount.com/discussion/comment/2769713/#Comment_2769713