A character on EastEnders will be diagnosed with epilepsy, an incurable neurological disorder, the BBC soap has confirmed.