The shock news comes ahead of the BBC soap's 40th anniversary