What do you mean by "CASTEP of the same optimization usually fails". Does the calculation stop with an error? Crash? Give a result that you don't expect?
I'm happy to help, but I need a bit more information... Perhaps you could share an input param and cell file, and a sample output file?