Well it wasn’t the transition but that helped me find out what it was. There were no transitions, just taking opacity to zero. When I tried to put a transition on it I found that there was a frame in between the last clip and the credits. I moved the credits next to the last clip and it rendered fine. I can’t believe it was as simple as that.
Thanks so much for your help.