That's coming from the Messenger Ads Server.
To stop that from appearing do the following:
1. Open Internet Explorer
2. Go to Tools > Options (if the menu is hidden, tap the alt key to display it ).
3. Advanced Tab > Look for "Display a notification about every single script error" and
untick it.
4. Click OK, and then restart messenger, hopefully the error should no longer show.