I looked into the error a little more, and if you're using unity 2020 there's a known problem exporting to web. You have to disable compression under edit project setting->player->publishing settings->compression format->disabled. Hope this is your issue!