Polarization preservation of polarized deuteron beams in the electron ion collider at Brookhaven National Laboratory