I recently ran into an failure issue using UR where the default collision config for trajopt sets the safety_margin=0.025 and the safety_margin_buffer=0.05 but there is one link pair on the UR which are always within 0.035. As a result this results with a lot of collision equation being added to the problem causing issues. This can be solved by reducing the safety margin_buffer to but that also can cause solver issues if it too small. Now trajopt supports setting individual link pair safety_margin data but not the safety_margin_buffer which needs to be added to provide necessary configuration. For now you can reduce the things such that the safety_margin + the safety_margin_buffer is less than the 0.035 but may not work for all cases.