I have been able to fix this now so that you should never see E#, B#, Cb or Fb by default (you should still be able to respell manually if that’s what you really want). I’ve also fixed the problem with unexpected double sharps and flats.
For background, Dorico and the Score Editor use a version of the PS13 algorithm which intends to find optimal spellings in the tonal context. It’s rather sophisticated, however it seems that something that may be ‘correct’ for a music theorist may not be the same as what a practising musician requires.