The issue was because there was a new starting declaration sent to HMRC for an NI number - you cannot leave someone in the same period you have a starting declaration for.
You must cancel leaver and wait until next period to leave them and create/print P45.
