Please leave the washing machine door open after every load of wash to allow moisture to escape. If the front door stays closed between wash cycles, it ends up holding in all the moisture from the previous wash, creating an environment in which mould can grow.
Here is a more detailed explanation: https://www.repairaid.co.uk/help/washin ... ne-smells/
Hope this helps.