Deploy failed due to an error in build step because of @netlify/plugin-gatsby plugin

We are having build failures in Netlify for this app. Upon different changes in configuration the failure persists with no change.
Netlify site name: agitated-jang-846559.netlify.app

10:04:22 AM: Netlify Build                                                 
10:04:22 AM: ────────────────────────────────────────────────────────────────
10:04:22 AM: ​
10:04:22 AM: ❯ Version
10:04:22 AM:   @netlify/build 33.4.6
10:04:22 AM: ​
10:04:22 AM: ❯ Flags
10:04:22 AM:   accountId: 5fbd6dcd168c7734c65096b4
10:04:22 AM:   baseRelDir: true
10:04:22 AM:   buildId: 686147a9e18d750008c0c4f1
10:04:22 AM:   deployId: 686147a9e18d750008c0c4f3
10:04:22 AM: ​
10:04:22 AM: ❯ Current directory
10:04:22 AM:   /opt/build/repo
10:04:22 AM: ​
10:04:22 AM: ❯ Config file
10:04:22 AM:   /opt/build/repo/netlify.toml
10:04:22 AM: ​
10:04:22 AM: ❯ Context
10:04:22 AM:   production
10:04:22 AM: ​
10:04:22 AM: ❯ Installing plugins
10:04:22 AM:    - @netlify/plugin-gatsby@1
10:04:22 AM:    - netlify-plugin-submit-sitemap@0.2
10:04:22 AM:    - netlify-plugin-inline-critical-css@1
10:04:22 AM:    - netlify-plugin-hashfiles@4.0.2
10:04:22 AM:    - netlify-plugin-image-optim@0.4.0
10:04:22 AM:    - netlify-plugin-js-obfuscator@1.0.20
10:04:22 AM:    - @netlify/plugin-sitemap@0.8.1
10:04:22 AM:    - netlify-plugin-gridsome-cache@1.0.3
10:04:22 AM:    - @netlify/plugin-lighthouse@6.0.1
10:04:56 AM: ​
10:04:56 AM: ❯ Loading plugins
10:04:56 AM:    - @netlify/plugin-gatsby@1.0.3 from Netlify app
10:04:56 AM:    - netlify-plugin-submit-sitemap@0.2.3 from Netlify app
10:04:56 AM:    - netlify-plugin-inline-critical-css@1.2.0 from Netlify app
10:04:56 AM:    - netlify-plugin-hashfiles@4.0.2 from Netlify app
10:04:56 AM:    - netlify-plugin-image-optim@0.4.0 from Netlify app
10:04:56 AM:    - netlify-plugin-js-obfuscator@1.0.20 from Netlify app
10:04:56 AM:    - @netlify/plugin-sitemap@0.8.1 from Netlify app
10:04:56 AM:    - netlify-plugin-gridsome-cache@1.0.3 from Netlify app
10:04:56 AM:    - @netlify/plugin-lighthouse@6.0.1 from Netlify app
10:04:56 AM: ​
10:04:56 AM: ❯ Outdated plugins
10:04:56 AM:    - @netlify/plugin-gatsby@1.0.3: latest version is 3.8.4
10:04:56 AM:      Migration guide: https://ntl.fyi/gatsby-plugin-migration
10:04:56 AM:      To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)
10:04:56 AM:    - netlify-plugin-submit-sitemap@0.2.3: latest version is 0.4.0
10:04:56 AM:      To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)
10:04:56 AM:    - netlify-plugin-inline-critical-css@1.2.0: latest version is 2.0.0
10:04:56 AM:      Migration guide: https://github.com/Tom-Bonnike/netlify-plugin-inline-critical-css/blob/master/CHANGELOG.md#200
10:04:56 AM:      To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)
10:05:03 AM: No Gatsby cache found. Building fresh.
10:05:03 AM: No Gridsome cache found. Building fresh.
10:05:03 AM: ​
10:05:03 AM: build.command from netlify.toml                               
10:05:03 AM: ────────────────────────────────────────────────────────────────
10:05:03 AM: ​
10:05:03 AM: $ ./anti-plugin-build.sh
10:05:03 AM: 🚀 Starting anti-plugin build process...
10:05:03 AM: 🧹 Cleaning caches...
10:05:03 AM: 📦 Installing dependencies...
10:05:32 AM: 🏗️ Building site...
10:05:32 AM: info Deleting .cache, public, /opt/build/repo/node_modules/.cache/babel-loader, /opt/build/repo/node_modules/.cache/terser-webpack-plugin
10:05:32 AM: info Successfully deleted directories
10:05:36 AM: success compile gatsby files - 2.304s
10:05:36 AM: success load gatsby config - 0.022s
10:05:39 AM: success Installing Netlify adapter (gatsby-adapter-netlify@^1.0.4) - 2.652s
10:05:39 AM: info If you plan on staying on this deployment platform, consider installing "gatsby-adapter-netlify@^1.0.4" as a dependency in your project. This will give you faster and more robust installs.
10:05:39 AM: info Using gatsby-adapter-netlify adapter
10:05:39 AM: warning Disabling plugin "gatsby-plugin-netlify":
10:05:39 AM:  - Not compatible with the "gatsby-adapter-netlify" adapter. Please remove it from your gatsby-config.
10:05:39 AM: success load plugins - 0.406s
10:05:39 AM: warning gatsby-plugin-react-helmet: Gatsby now has built-in support for modifying the document head. Learn more at https://gatsby.dev/gatsby-head
10:05:39 AM: success onPreInit - 0.003s
10:05:39 AM: success initialize cache - 0.063s
10:05:39 AM: success copy gatsby files - 0.049s
10:05:39 AM: success Compiling Gatsby Functions - 0.149s
10:05:39 AM: success onPreBootstrap - 0.156s
10:05:40 AM: success createSchemaCustomization - 0.030s
10:05:41 AM: success Checking for changed pages - 0.000s
10:05:41 AM: success source and transform nodes - 1.704s
10:05:42 AM: info Writing GraphQL type definitions to /opt/build/repo/.cache/schema.gql
10:05:43 AM: success building schema - 1.494s
10:05:43 AM: success createPages - 0.306s
10:05:43 AM: success createPagesStatefully - 0.394s
10:05:43 AM: info Total nodes: 149, SitePage nodes: 21 (use --verbose for breakdown)
10:05:43 AM: success Checking for changed pages - 0.000s
10:05:43 AM: success onPreExtractQueries - 0.000s
10:05:49 AM: warning Deprecated syntax of sort and/or aggregation field arguments were found in your query (see https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query in your code.
10:05:49 AM: File: /opt/build/repo/src/components/BlogRoll.js
10:05:49 AM: Current query:
10:05:49 AM: query BlogRollQuery {
10:05:49 AM:   allMarkdownRemark(
10:05:49 AM:     sort: {fields: [frontmatter___date], order: DESC}
10:05:49 AM:     filter: {frontmatter: {templateKey: {eq: "blog-post"}}}
10:05:49 AM:   ) {
10:05:49 AM:     edges {
10:05:49 AM:       node {
10:05:49 AM:         excerpt(pruneLength: 400)
10:05:49 AM:         id
10:05:49 AM:         fields {
10:05:49 AM:           slug
10:05:49 AM:         }
10:05:49 AM:         frontmatter {
10:05:49 AM:           title
10:05:49 AM:           templateKey
10:05:49 AM:           date(formatString: "MMMM DD, YYYY")
10:05:49 AM:           featuredpost
10:05:49 AM:           featuredimage
10:05:49 AM:         }
10:05:49 AM:       }
10:05:49 AM:     }
10:05:49 AM:   }
10:05:49 AM: }
10:05:49 AM: Converted query:
10:05:49 AM: query BlogRollQuery {
10:05:49 AM:   allMarkdownRemark(
10:05:49 AM:     sort: {frontmatter: {date: DESC}}
10:05:49 AM:     filter: {frontmatter: {templateKey: {eq: "blog-post"}}}
10:05:49 AM:   ) {
10:05:49 AM:     edges {
10:05:49 AM:       node {
10:05:49 AM:         excerpt(pruneLength: 400)
10:05:49 AM:         id
10:05:49 AM:         fields {
10:05:49 AM:           slug
10:05:49 AM:         }
10:05:49 AM:         frontmatter {
10:05:49 AM:           title
10:05:49 AM:           templateKey
10:05:49 AM:           date(formatString: "MMMM DD, YYYY")
10:05:49 AM:           featuredpost
10:05:49 AM:           featuredimage
10:05:49 AM:         }
10:05:49 AM:       }
10:05:49 AM:     }
10:05:49 AM:   }
10:05:49 AM: }
10:05:49 AM: warning Deprecated syntax of sort and/or aggregation field arguments were found in your query (see https://gatsby.dev/graphql-nested-sort-and-aggregate). Query was automatically converted to a new syntax. You should update query in your code.
10:05:49 AM: File: /opt/build/repo/src/pages/tags/index.js
10:05:49 AM: Current query:
10:05:49 AM: query TagsQuery {
10:05:49 AM:   site {
10:05:49 AM:     siteMetadata {
10:05:49 AM:       title
10:05:49 AM:     }
10:05:49 AM:   }
10:05:49 AM:   allMarkdownRemark(limit: 1000) {
10:05:49 AM:     group(field: frontmatter___tags) {
10:05:49 AM:       fieldValue
10:05:49 AM:       totalCount
10:05:49 AM:     }
10:05:49 AM:   }
10:05:49 AM: }
10:05:49 AM: Converted query:
10:05:49 AM: query TagsQuery {
10:05:49 AM:   site {
10:05:49 AM:     siteMetadata {
10:05:49 AM:       title
10:05:49 AM:     }
10:05:49 AM:   }
10:05:49 AM:   allMarkdownRemark(limit: 1000) {
10:05:49 AM:     group(field: {frontmatter: {tags: SELECT}}) {
10:05:49 AM:       fieldValue
10:05:49 AM:       totalCount
10:05:49 AM:     }
10:05:49 AM:   }
10:05:49 AM: }
10:05:49 AM: success extract queries from components - 5.602s
10:05:49 AM: success write out redirect data - 0.001s
10:05:49 AM: success onPostBootstrap - 0.001s
10:05:49 AM: info bootstrap finished - 16.536s
10:05:49 AM: success write out requires - 0.003s
10:05:57 AM: DEPRECATION WARNING [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
10:05:57 AM: More info: https://sass-lang.com/d/legacy-js-api
10:05:57 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:05:57 AM: More info and automated migrator: https://sass-lang.com/d/import
10:05:57 AM:   ╷
10:05:57 AM: 1 │ @import "./bulma-custom.sass"
10:05:57 AM:   │         ^^^^^^^^^^^^^^^^^^^^^
10:05:57 AM:   ╵
10:05:57 AM:     src/style/_index.sass 1:9  root stylesheet
10:05:57 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:05:57 AM: More info and automated migrator: https://sass-lang.com/d/import
10:05:57 AM:    ╷
10:05:57 AM: 13 │ @import "bulma/bulma"
10:05:57 AM:    │         ^^^^^^^^^^^^^
10:05:57 AM:    ╵
10:05:57 AM:     src/style/bulma-custom.sass 13:9  @import
10:05:57 AM:     src/style/_index.sass 1:9         root stylesheet
10:05:57 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:05:57 AM: More info and automated migrator: https://sass-lang.com/d/import
10:05:57 AM:    ╷
10:05:57 AM: 14 │ @import "./custom-style.sass"
10:05:57 AM:    │         ^^^^^^^^^^^^^^^^^^^^^
10:05:57 AM:    ╵
10:05:57 AM:     src/style/bulma-custom.sass 14:9  @import
10:05:57 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:06 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:06 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:06 AM:   ╷
10:06:06 AM: 1 │ @import ./variables.sass
10:06:06 AM:   │         ^^^^^^^^^^^^^^^^
10:06:06 AM:   ╵
10:06:06 AM:     src/style/custom-style.sass 1:9   @import
10:06:06 AM:     src/style/bulma-custom.sass 14:9  @import
10:06:06 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:06 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:06 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:06 AM:   ╷
10:06:06 AM: 2 │ @import "~bulma/sass/utilities/initial-variables"
10:06:06 AM:   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:06:06 AM:   ╵
10:06:06 AM:     src/style/variables.sass 2:9      @import
10:06:06 AM:     src/style/custom-style.sass 1:9   @import
10:06:06 AM:     src/style/bulma-custom.sass 14:9  @import
10:06:06 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:25 AM: DEPRECATION WARNING [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
10:06:25 AM: More info: https://sass-lang.com/d/legacy-js-api
10:06:25 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:25 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:25 AM:   ╷
10:06:25 AM: 1 │ @import "./bulma-custom.sass"
10:06:25 AM:   │         ^^^^^^^^^^^^^^^^^^^^^
10:06:25 AM:   ╵
10:06:25 AM:     src/style/_index.sass 1:9  root stylesheet
10:06:25 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:25 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:25 AM:    ╷
10:06:25 AM: 13 │ @import "bulma/bulma"
10:06:25 AM:    │         ^^^^^^^^^^^^^
10:06:25 AM:    ╵
10:06:25 AM:     src/style/bulma-custom.sass 13:9  @import
10:06:25 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:25 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:25 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:25 AM:    ╷
10:06:25 AM: 14 │ @import "./custom-style.sass"
10:06:25 AM:    │         ^^^^^^^^^^^^^^^^^^^^^
10:06:25 AM:    ╵
10:06:25 AM:     src/style/bulma-custom.sass 14:9  @import
10:06:25 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:32 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:32 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:32 AM:   ╷
10:06:32 AM: 1 │ @import ./variables.sass
10:06:32 AM:   │         ^^^^^^^^^^^^^^^^
10:06:32 AM:   ╵
10:06:32 AM:     src/style/custom-style.sass 1:9   @import
10:06:32 AM:     src/style/bulma-custom.sass 14:9  @import
10:06:32 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:32 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:32 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:32 AM:   ╷
10:06:32 AM: 2 │ @import "~bulma/sass/utilities/initial-variables"
10:06:32 AM:   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:06:32 AM:   ╵
10:06:32 AM:     src/style/variables.sass 2:9      @import
10:06:32 AM:     src/style/custom-style.sass 1:9   @import
10:06:32 AM:     src/style/bulma-custom.sass 14:9  @import
10:06:32 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:32 AM: gatsby-plugin-purgecss: Only processing /opt/build/repo/src/style/_index.sass
10:06:32 AM: 
10:06:32 AM: From: /opt/build/repo/src/style/_index.sass
10:06:32 AM:  Removed Selectors: [
10:06:32 AM:   '.theme-light',
10:06:32 AM:   '.theme-dark',
10:06:32 AM:   'ol',
10:06:32 AM:   'dl',
10:06:32 AM:   'dt',
10:06:32 AM:   'dd',
10:06:32 AM:   'blockquote',
10:06:32 AM:   'figure',
10:06:32 AM:   'fieldset',
10:06:32 AM:   'legend',
10:06:32 AM:   'pre',
10:06:32 AM:   'iframe',
10:06:32 AM:   'h6',
10:06:32 AM:   'select',
10:06:32 AM:   'video',
10:06:32 AM:   'table',
10:06:32 AM:   'td',
10:06:32 AM:   'th',
10:06:32 AM:   'td:not([align])',
10:06:32 AM:   'th:not([align])',
10:06:32 AM:   'aside',
10:06:32 AM:   'hgroup',
10:06:32 AM:   'optgroup',
10:06:32 AM:   'a strong',
10:06:32 AM:   'input[type=checkbox]',
10:06:32 AM:   'input[type=radio]',
10:06:32 AM:   'small',
10:06:32 AM:   'strong',
10:06:32 AM:   'pre code',
10:06:32 AM:   'table td',
10:06:32 AM:   'table th',
10:06:32 AM:   'table td:not([align])',
10:06:32 AM:   'table th:not([align])',
10:06:32 AM:   '.select:not(.is-multiple):not(.is-loading)::after',
10:06:32 AM:   '.pagination-previous',
10:06:32 AM:   '.pagination-next',
10:06:32 AM:   '.pagination-link',
10:06:32 AM:   '.pagination-ellipsis',
10:06:32 AM:   '.file-name',
10:06:32 AM:   '.select select',
10:06:32 AM:   '.modal-close',
10:06:32 AM:   '.modal-close:active',
10:06:32 AM:   '.control.is-loading::after',
10:06:32 AM:   '.select.is-loading::after',
10:06:32 AM:   '.button.is-loading::after',
10:06:32 AM:   '.is-overlay',
10:06:32 AM:   '.hero-video',
10:06:32 AM:   '.modal',
10:06:32 AM:   '.modal-background',
10:06:32 AM:   '.menu-list .menu-item',
10:06:32 AM:   '.is-unselectable',
10:06:32 AM:   '.tabs',
10:06:32 AM:   '.breadcrumb',
10:06:32 AM:   '.button strong',
10:06:32 AM:   '.button .icon.is-medium',
10:06:32 AM:   '.button .icon.is-large',
10:06:32 AM:   '.button.is-hovered',
10:06:32 AM:   '.button.is-focused',
10:06:32 AM:   '.button[disabled]',
10:06:32 AM:   'fieldset[disabled] .button',
10:06:32 AM:   '.button.is-white',
10:06:32 AM:   '.button.is-white:focus-visible',
10:06:32 AM:   '.button.is-white.is-focused',
10:06:32 AM:   '.button.is-white.is-soft',
10:06:32 AM:   '.button.is-white.is-bold',
10:06:32 AM:   '.button.is-white[disabled]',
10:06:32 AM:   'fieldset[disabled] .button.is-white',
10:06:32 AM:   '.button.is-black',
10:06:32 AM:   '.button.is-black:focus-visible',
10:06:32 AM:   '.button.is-black.is-focused',
10:06:32 AM:   '.button.is-black.is-soft',
10:06:32 AM:   '.button.is-black.is-bold',
10:06:32 AM:   '.button.is-black[disabled]',
10:06:32 AM:   'fieldset[disabled] .button.is-black',
10:06:32 AM:   '.button.is-light',
10:06:32 AM:   '.button.is-light:focus-visible',
10:06:32 AM:   '.button.is-light.is-focused',
10:06:32 AM:   '.button.is-light.is-soft',
10:06:32 AM:   '.button.is-light.is-bold',
10:06:32 AM:   '.button.is-light[disabled]',
10:06:32 AM:   'fieldset[disabled] .button.is-light',
10:06:32 AM:   '.button.is-dark',
10:06:32 AM:   '.button.is-dark:focus-visible',
10:06:32 AM:   '.button.is-dark.is-focused',
10:06:32 AM:   '.button.is-dark.is-soft',
10:06:32 AM:   '.button.is-dark.is-bold',
10:06:32 AM:   '.button.is-dark[disabled]',
10:06:32 AM:   'fieldset[disabled] .button.is-dark',
10:06:32 AM:   '.button.is-text',
10:06:32 AM:   '.button.is-text:focus-visible',
10:06:32 AM:   '.button.is-text.is-focused',
10:06:32 AM:   '.button.is-text.is-light',
10:06:32 AM:   '.button.is-text.is-dark',
10:06:32 AM:   '.button.is-text.is-soft',
10:06:32 AM:   '.button.is-text.is-bold',
10:06:32 AM:   '.button.is-text[disabled]',
10:06:32 AM:   'fieldset[disabled] .button.is-text',
10:06:32 AM:   '.button.is-primary',
10:06:32 AM:   '.button.is-primary:focus-visible',
10:06:32 AM:   '.button.is-primary.is-focused',
10:06:32 AM:   ... 4353 more items
10:06:32 AM: ]
10:06:37 AM: warning ./node_modules/gatsby-plugin-decap-cms/gatsby-browser.js
10:06:37 AM: Critical dependency: the request of a dependency is an expression
10:06:37 AM: success Building production JavaScript and CSS bundles - 47.778s
10:06:37 AM: 
10:06:37 AM: gatsby-plugin-purgecss:
10:06:37 AM:  Previous CSS Size: 673.00 KB
10:06:37 AM:  New CSS Size: 229.44 KB (-65.91%)
10:06:37 AM:  Removed ~443.57 KB of CSS
10:06:37 AM: 
10:06:38 AM: DEPRECATION WARNING [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
10:06:38 AM: More info: https://sass-lang.com/d/legacy-js-api
10:06:38 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:38 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:38 AM:   ╷
10:06:38 AM: 1 │ @import "./bulma-custom.sass"
10:06:38 AM:   │         ^^^^^^^^^^^^^^^^^^^^^
10:06:38 AM:   ╵
10:06:38 AM:     src/style/_index.sass 1:9  root stylesheet
10:06:38 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:38 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:38 AM:    ╷
10:06:38 AM: 13 │ @import "bulma/bulma"
10:06:38 AM:    │         ^^^^^^^^^^^^^
10:06:38 AM:    ╵
10:06:38 AM:     src/style/bulma-custom.sass 13:9  @import
10:06:38 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:38 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:38 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:38 AM:    ╷
10:06:38 AM: 14 │ @import "./custom-style.sass"
10:06:38 AM:    │         ^^^^^^^^^^^^^^^^^^^^^
10:06:38 AM:    ╵
10:06:38 AM:     src/style/bulma-custom.sass 14:9  @import
10:06:38 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:44 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:44 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:44 AM:   ╷
10:06:44 AM: 1 │ @import ./variables.sass
10:06:44 AM:   │         ^^^^^^^^^^^^^^^^
10:06:44 AM:   ╵
10:06:44 AM:     src/style/custom-style.sass 1:9   @import
10:06:44 AM:     src/style/bulma-custom.sass 14:9  @import
10:06:44 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:44 AM: DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
10:06:44 AM: More info and automated migrator: https://sass-lang.com/d/import
10:06:44 AM:   ╷
10:06:44 AM: 2 │ @import "~bulma/sass/utilities/initial-variables"
10:06:44 AM:   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:06:44 AM:   ╵
10:06:44 AM:     src/style/variables.sass 2:9      @import
10:06:44 AM:     src/style/custom-style.sass 1:9   @import
10:06:44 AM:     src/style/bulma-custom.sass 14:9  @import
10:06:44 AM:     src/style/_index.sass 1:9         root stylesheet
10:06:53 AM: success Building HTML renderer - 15.976s
10:06:53 AM: success Execute page configs - 0.039s
10:06:53 AM: success Caching Webpack compilations - 0.000s
10:06:53 AM: success run queries in workers - 0.138s - 23/23 166.16/s
10:06:53 AM: success Merge worker state - 0.002s
10:06:53 AM: success Rewriting compilation hashes - 0.000s
10:06:53 AM: success Writing page-data.json and slice-data.json files to public directory - 0.011s - 21/21 1829.17/s
10:07:02 AM: error (node:8109) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
10:07:02 AM: (Use `node --trace-deprecation ...` to show where the warning was created)
10:07:02 AM: success Building static HTML for pages - 8.126s - 21/21 2.58/s
10:07:02 AM: info There are no new or changed slice html files to build.
10:07:03 AM: success stitching slices - 0.041s
10:07:03 AM: success onPostBuild - 0.000s
10:07:03 AM: 
10:07:03 AM: Pages
10:07:03 AM: ┌ src/templates/about-page.js
10:07:03 AM: │ ├   /about/
10:07:03 AM: │ └   /team/
10:07:03 AM: ├ src/templates/index-page.js
10:07:03 AM: │ └   /
10:07:03 AM: ├ src/templates/blog-post.js
10:07:03 AM: │ ├   /blog/2016-12-17-making-sense-of-the-scaas-new-flavor-wheel/
10:07:03 AM: │ └   ...2 more pages available
10:07:03 AM: ├ src/templates/product-page.js
10:07:03 AM: │ └   /products/
10:07:03 AM: ├ src/templates/tags.js
10:07:03 AM: │ ├   /tags/flavor/
10:07:03 AM: │ └   ...5 more pages available
10:07:03 AM: ├ src/pages/404.js
10:07:03 AM: │ ├   /404/
10:07:03 AM: │ └   /404.html
10:07:03 AM: ├ src/pages/contact/examples.js
10:07:03 AM: │ └   /contact/examples/
10:07:03 AM: ├ src/pages/contact/file-upload.js
10:07:03 AM: │ └   /contact/file-upload/
10:07:03 AM: ├ src/pages/contact/index.js
10:07:03 AM: │ └   /contact/
10:07:03 AM: ├ src/pages/contact/thanks.js
10:07:03 AM: │ └   /contact/thanks/
10:07:03 AM: ├ src/pages/blog/index.js
10:07:03 AM: │ └   /blog/
10:07:03 AM: └ src/pages/tags/index.js
10:07:03 AM:   └   /tags/
10:07:03 AM:   ╭────────────────────────────────────────────────────────────────────╮
10:07:03 AM:   │                                                                    │
10:07:03 AM:   │     (SSG) Generated at build time                                  │
10:07:03 AM:   │   D (DSG) Deferred static generation - page generated at runtime   │
10:07:03 AM:   │   ∞ (SSR) Server-side renders at runtime (uses getServerData)      │
10:07:03 AM:   │   λ (Function) Gatsby function                                     │
10:07:03 AM:   │                                                                    │
10:07:03 AM:   ╰────────────────────────────────────────────────────────────────────╯
10:07:03 AM: info Done building in 90.353994902 sec
10:07:05 AM: info [gatsby-adapter-netlify] Stored the Gatsby cache to speed up future builds. 🔥
10:07:05 AM: ✅ Build completed successfully!
10:07:05 AM: ​
10:07:05 AM: (build.command completed in 2m 1.7s)
10:07:05 AM: ​
10:07:05 AM: Functions bundling                                            
10:07:05 AM: ────────────────────────────────────────────────────────────────
10:07:05 AM: ​
10:07:05 AM: Packaging Functions from netlify/functions directory:
10:07:05 AM:  - hello.js
10:07:05 AM:  - gatsby/gatsby.js
10:07:05 AM: ​
10:07:07 AM: ​
10:07:07 AM: (Functions bundling completed in 1.8s)
10:07:08 AM: Failed during stage 'building site': Build script returned non-zero exit code: 4 (https://ntl.fyi/exit-code-4)
10:07:08 AM: ​
10:07:08 AM: Plugin "@netlify/plugin-gatsby" internal error                
10:07:08 AM: ────────────────────────────────────────────────────────────────
10:07:08 AM: ​
10:07:08 AM:   Error message
10:07:08 AM:   CpyError: Cannot copy from `.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds` to `/opt/build/cache/cwd/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds`: EISDIR: illegal operation on a directory '/opt/build/repo/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds'
10:07:08 AM: ​
10:07:08 AM:   Plugin details
10:07:08 AM:   Package:        @netlify/plugin-gatsby
10:07:08 AM:   Version:        1.0.3
10:07:08 AM:   Repository:     git+https://github.com/netlify/netlify-plugin-gatsby.git
10:07:08 AM:   npm link:       https://www.npmjs.com/package/@netlify/plugin-gatsby
10:07:08 AM:   Report issues:  https://github.com/netlify/netlify-plugin-gatsby/issues
10:07:08 AM: ​
10:07:08 AM:   Error location
10:07:08 AM:   In "onPostBuild" event in "@netlify/plugin-gatsby" from Netlify app
10:07:08 AM:       at pMap.concurrency.concurrency (file:///opt/buildhome/node-deps/node_modules/cpy/index.js:261:12)
10:07:08 AM:       at async file:///opt/buildhome/node-deps/node_modules/p-map/index.js:121:20
10:07:08 AM: ​
10:07:08 AM:   Error properties
10:07:08 AM:   {
10:07:08 AM:     errno: -21,
10:07:08 AM:     code: 'EISDIR',
10:07:08 AM:     source: '/opt/build/repo/.cache/adapters/node_modules/.bin/download-msgpackr-prebuilds'
10:07:08 AM:   }
10:07:08 AM: ​
10:07:08 AM:   Resolved config
10:07:08 AM:   build:
10:07:08 AM:     command: ./anti-plugin-build.sh
10:07:08 AM:     commandOrigin: config
10:07:08 AM:     environment:
10:07:08 AM:       - NODE_VERSION
10:07:08 AM:       - NPM_FLAGS
10:07:08 AM:       - GATSBY_TELEMETRY_DISABLED
10:07:08 AM:       - CI
10:07:08 AM:       - NETLIFY_USE_YARN
10:07:08 AM:       - NETLIFY_SKIP_GATSBY_CACHE
10:07:08 AM:       - NETLIFY_EXPERIMENTAL_USE_NODE_MODULES_CACHE
10:07:08 AM:       - NETLIFY_GATSBY_PLUGIN_DISABLE
10:07:08 AM:       - NETLIFY_SKIP_AUTO_PLUGINS
10:07:08 AM:       - NETLIFY_SKIP_FRAMEWORK_DETECTION
10:07:08 AM:       - DISABLE_NETLIFY_PLUGINS
10:07:08 AM:     processing:
10:07:08 AM:       css:
10:07:08 AM:         bundle: true
10:07:08 AM:         minify: true
10:07:08 AM:       html:
10:07:08 AM:         pretty_urls: true
10:07:08 AM:       js:
10:07:08 AM:         bundle: true
10:07:08 AM:         minify: true
10:07:08 AM:       skip_processing: false
10:07:08 AM:     publish: /opt/build/repo/public
10:07:08 AM:     publishOrigin: config
10:07:08 AM:   functionsDirectory: /opt/build/repo/netlify/functions
10:07:08 AM:   headers:

hey @prabalchhatkuli thanks for getting in touch - can you let me know if you have @netlify/plugin-gatsby version 1.0.3 pinned?

10:04:56 AM: ❯ Outdated plugins
10:04:56 AM:    - @netlify/plugin-gatsby@1.0.3: latest version is 3.8.4

If so, the best practice would be to uninstall it so the latest version can be installed automatically during the build. Let me know if this helps!