Hi Yuying,
There is a similar post discussed the same error you mentioned, please check this post ot see if you are running into the same issue:
https://community.esri.com/thread/225099-cant-seem-to-uploadattach-images-via-survey-123-web-form
Otherwise, please let us know how the survey is created/hosted and are you able to upload image from field app or other web browsers?
Thanks,
Shwu-Jing