I think there is something wrong with that specific Wall-Roof connection because the Roof should trim the top of the Wall so it should not extend above the Roof once the operation is performed.
Can you try it with a newly placed Wall and a newly placed Roof? Place the away from your model so they do not accidentally interfere or intersect with any other existing elements. Does it work with those two elements?
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27