Build fails on Gatsby & Sanity site deploy with error for invalid lock file

Welcome to the forums @ccbergstrom

Your issue seems very similar (if not the same) as that outlined in Netlify Deploy Command failed with exit code 254: npm run build-studio && cp studio/netlify.toml studio/dist which was asked a little more than a week ago.