You cannot use the password of your Gmail account directly, but rather have to generate one when opening up the IMAP integration. This should be noted when configuring a Gmail account in the wizard.
Link to the documentation: https://pimalaya.org/himalaya/docs/cli/configuration/gmail.html.