There are only two William Fitzgerald deaths of the approx age as yours registered in 1866 -
William Fitzgerald, Ashton under Lyne, aged 39
John W Fitzgerald, Stepney, aged 41
So, if it wasn't the Ashton under Lyne one, then he didn't die in 1866!
How did you find out that he died in 1866?