My comment was only regarding the ghostscript error.
Just an update for everyone looking at this thread, For me Bayesian polishing worked and the map quality also improved when I ran it on relion 3.1. I made a different directory and changed the paths to the star files of the motioncorrected and the refinement file to indicate absolute paths and it worked.
Also thanks to @rbs_sci and @DanielAsarnow for guiding me.