Getting error when creating an email account

When I am creating a new email account, I am getting an error:-

Server Error

Close Report

TypeError: Object of type ‘error’ is not JSON serializable

Why this error is occuring and how to resolve this issue?

try to read browser console for more info about the error
ctrl+shift+c and go to console tab