Wrangler pages publish error: HeadersTimeoutError

I’m trying to upload a bunch of files to my pages site, but it keeps returning the following error:

FatalError: Failed to upload files. Please try again. Error: {“cause”:{“name”:“HeadersTimeoutError”,“code”:“UND_ERR_HEADERS_TIMEOUT”,“message”:“Headers Timeout Error”}})
at /Users/myuser/.config/yarn/global/node_modules/wrangler/wrangler-dist/cli.js:160994:13
at async run2 (/Users/ntsoi/.config/yarn/global/node_modules/wrangler/wrangler-dist/cli.js:160596:26) {
code: 1

Any suggestions? I did try logging out and logging back into the wrangler cli, but no luck.