Damian,
Your problem is excatlly as Peter has stated. You cannot attach a wall to a roof where either the following 3 rules occur:
1. A portion of the wall has a zero height.
2. A portion of the top of the wall is below the bottom of the wall
3. A portion of the bottom of the wall is above the top of the wall.
I have run into all of these problems and the only solution is to rais the roof to be attached about an inch or so. You may have to experiment with small increments to see what the smallest you can go before Revit errors.
After looking at your image you may want to consider making the curb part of the curtain wall so you will have positive wall height in all locations.