Do you mean that if you install IM provider it just 'disable' avast protection, i.e., it IS the problem, without it avast works?
Which IM program are you using?
Which is your operational system, firewall, other security programs?
Any old antivirus installed in this machine before avast?