I have come across this issue myself and know it can be frustrating. The article below may help with the repeated password prompt request on your Mac.
Also, try closing the mail program and opening it again as it could be an issue with attempting to authenticate the account. You may have to delete the account and add it back. Below, I have provided the steps on how to process this.
Hope this helps,