When you upgraded your discourse website, did you make sure that all your servers upgraded? (I’m assuming that the 3 servers are the web part, and the db and redis part is in a separate server).
Maybe this is the reason that some of your emails are being sent wrong and others are sent correctly (although it would be needed to know more about your setup to make sure).