try adding colourbar afterwards
...
pr_image.plot(ax=ax, add_colorbar=False)
...
cbar = fig.colorbar(pr_image.isel(time=0).plot())
#show or save animation
i has the same issue and answered my own question here
how to animation with xarray dataset and cartopy projection with a colorbar?