Outlook exe has generated an error message

Hello,
Why am I getting this following error message whenever I try to access my mailbox through Outlook?
This error is very annoying to me and I can’t solve it easily however, I have restarted the program.
Can I get the resolution to fix it immediately?
I would be grateful to you.

Outlook.exe has generated an error and will be closed by Windows. You will need to restart the program. An error log is being created. Outlook will no longer allow me to access my mailbox."
