I'd suggest running a yarn tsc then yarn --cwd packages/backend build to see if the build works locally first. This should give you more detailed errors.
yarn tsc
yarn --cwd packages/backend build