Not sure what the exact issue was but I got my code to run by downgrading the eas-cli to version 16.2.0 and upgrading react native from 0.76.7 to 0.76.9.
I also deleted "expo-modules-core" from my package.json which is not neededd in recent versions of the Expo SDK.
I also recommend using the commands npx expo-doctor
and `npx expo install --check` which can help you figure out why your builds are breaking.