To fix the error, go to
Edit -> Project Settings...
On the Project Settings window, go to Player -> WebGL Settings Tab -> Publishing Settings -> Compression Format
Set Compression Format to Disabled.
Then build, zip up the build files and upload to itch.io.