Random errors when uploading images

We’ve been using this for years without any problems, but over the past 6 months users intermittently get errors when uploading to Buddypress (fully updated) message attachments. Sometimes it works, sometimes we get the attached error message. The error appears across all platforms and browsers. Any thoughts?