Remove cavities from surface calculation

Hi everyone,
I’m working on a script that would calculate formwork area - similar to this Formwork estimation using Dynamo! - YouTube made by @GavinCrump.
What I have found out that the script creates these weird forms, where they should not be, when the structure is created as a sweep and has round edges (see picture below circled in blue). If the structure is created as an extrusion, then it is all good. It appears that this area is excluded from formwork calculation, looking at the green from the Dynamo screenshot.
Cross section:


Resulting formwork representation in Dynamo:

Could there be a way to overcome this issue, or this is a limitation of Dynamo/ Revit?
The other thing - in what way I could filter out the cavity surfaces (circled in red), as they are within the cast-in situ concrete part?
BK 19.1_Laidums 2.rfa (1.5 MB)
Cavity layout:

Thanks in advance for the replies.