FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

I don’t know how to fix it one build goes ok and next one faild and it last for three days now. I change almost nothing in my code. Please help

11:58:32 AM: success Building production JavaScript and CSS bundles - 27.161s
11:59:02 AM: <--- Last few GCs --->
11:59:02 AM: [3922:0x6de7ba0]    85135 ms: Scavenge (reduce) 1895.5 (2080.4) -> 1895.4 (2081.6) MB, 4.3 / 0.0 ms  (average mu = 0.210, current mu = 0.220) allocation failure;
11:59:02 AM: [3922:0x6de7ba0]    85142 ms: Scavenge (reduce) 1896.6 (2081.6) -> 1896.5 (2082.6) MB, 4.9 / 0.0 ms  (average mu = 0.210, current mu = 0.220) allocation failure;
11:59:02 AM: [3922:0x6de7ba0]    85148 ms: Scavenge (reduce) 1897.5 (2082.6) -> 1897.4 (2083.6) MB, 4.7 / 0.0 ms  (average mu = 0.210, current mu = 0.220) allocation failure;
11:59:02 AM: <--- JS stacktrace --->
11:59:02 AM: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
11:59:02 AM:  1: 0xb87bc0 node::Abort() [node]
11:59:02 AM:  2: 0xa96834  [node]
11:59:02 AM:  3: 0xd687f0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
11:59:02 AM:  4: 0xd68b97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
11:59:02 AM:  5: 0xf462a5  [node]
11:59:02 AM:  6: 0xf471a8 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
11:59:02 AM:  7: 0xf576b3  [node]
11:59:02 AM:  8: 0xf58528 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
11:59:02 AM:  9: 0xf32e8e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
11:59:02 AM: 10: 0xf34257 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
11:59:02 AM: 11: 0xf147a0 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
11:59:02 AM: 12: 0xf0c214 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [node]
11:59:02 AM: 13: 0xf0e5a8 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [node]
11:59:02 AM: 14: 0x133ff6c v8::internal::IncrementalStringBuilder::Extend() [node]
11:59:02 AM: 15: 0x1055450 v8::internal::JsonStringifier::SerializeString(v8::internal::Handle<v8::internal::String>) [node]
11:59:02 AM: 16: 0x10568f1 v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [node]
11:59:02 AM: 17: 0x105ad2f v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [node]
11:59:02 AM: 18: 0x105ba7f v8::internal::JsonStringify(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>) [node]
11:59:02 AM: 19: 0xdee7a7 v8::internal::Builtin_JsonStringify(int, unsigned long*, v8::internal::Isolate*) [node]
11:59:02 AM: 20: 0x170a179  [node]
11:59:04 AM: Aborted (core dumped)
11:59:04 AM: ​
11:59:04 AM: build.command failed                                        
11:59:04 AM: ────────────────────────────────────────────────────────────────
11:59:04 AM: ​
11:59:04 AM:   Error message
11:59:04 AM:   Command failed with exit code 134: npm run build (https://ntl.fyi/exit-code-134)
11:59:04 AM: ​
11:59:04 AM:   Error location
11:59:04 AM:   In Build command from Netlify app:
11:59:04 AM:   npm run build
11:59:04 AM: ​
11:59:04 AM:   Resolved config
11:59:04 AM:   build:
11:59:04 AM:     command: npm run build
11:59:04 AM:     commandOrigin: ui
11:59:04 AM:     environment:
11:59:04 AM:       - GATSBY_DISQUS_NAME
11:59:04 AM:       - REGIONS_ALLOWED
11:59:04 AM:       - WPGRAPHQL_URL
11:59:04 AM:       - YOUTUBE_DATA_API_V3_API_KEY
11:59:04 AM:     publish: /opt/build/repo/public
11:59:04 AM:     publishOrigin: ui
11:59:04 AM:   plugins:
11:59:04 AM:     - inputs: {}
11:59:04 AM:       origin: ui
11:59:04 AM:       package: '@netlify/plugin-gatsby'
11:59:04 AM:     - inputs: {}
11:59:04 AM:       origin: ui
11:59:04 AM:       package: '@netlify/plugin-lighthouse'
11:59:04 AM:   redirects:
11:59:06 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
11:59:06 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:59:06 AM: Failing build: Failed to build site
11:59:07 AM: Finished processing build request in 2m32.761s