It is not possible to install the 40 way header on the GPIO connector with the heatsink fitted. There is no room at the end for the connector to squeeze past the fixing.

I've had to remove the fixing and hold the heatsink in place with the header itself which is not ideal.

Not much you can do so this post is more for others to know of this issue.