this error description is incredibly unspecific. What does “unable to” mean? Does an error message show up? I was able to upload my WebP avatar just fine.
below the upload button is a list of allowed file extensions. Those are based on a permission and thus are user / configuration specific. However it would probably make sense to allow webp (and webm) attachments for everyone here on WoltLab.com. I'll file an internal issue for this, as it's not actually a bug.