Thanks for reporting this! There has been some recent work on our core upload system and there appears to be a little bug. I’m actually able to reproduce the error even without the component under the right circumstances. I’ll pass this by the engineer that’s been focusing on uploads to see if we can get this fixed up!
That sounds like a reasonable feature request! I’ll see what I can do.