If the window is set with a 'Symbolic' floor plan display, then it may not match the location of the frame in 3D when used in complex profile walls.
This may help to illustrate the problem (or it may just confuse it more).
https://archicad-talk.graphisoft.com/viewtopic.php?f=20&t=62812&p=288044&hilit=symbolic#p288044
I still haven't worked out a solution.
Try adjusting the opening reference line position in the complex profile or use 'Projected with Overhead' as the floor plan display for the window.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11