I can't save domain email

Hi, I’m trying to ceate an email domain with AWS Workmail email service, after enter the settings, I click save, it takes a minute, after that is not shown saved, it remains not saved.
This error is shown in the browser console: File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/env/lib/python3.7/site-packages/pymysql/err.py”, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1205, ‘Lock wait timeout exceeded; try restarting transaction’)

I addded the innodb_lock_wait_timeout=100 in the /opt/bitnami/mariadb/my.cnf file, but, when I try to login to erpnext, the login stuck.

Thank you.
Regards.