Update: It seems my report was a duplicate of MDL-63677 which includes details of how to reproduce the problem and a fix!
MoodleCloud
Email-based self-registration occasionally fails
This discussion has been locked so you can no longer reply to it.