Spectrum of electrons from beauty hadron decays in Pb-Pb 5.02 TeV