Managed to find the problem in the end.
I was attaching skeletal mesh components to the parent skeletal mesh during construct and that was causing the crash. I suspect that the parent skeletal mesh component hadn’t finished constructing when it was trying to attach the child components so was just falling over.