Not sure if being out of memory is the issue but it would seem that it is since it states "heap limit allocation failed" within the following error message:
C:\Users\*****\Documents\GitHub\brute_force_bip38>brutebip38
<--- Last few GCs --->
[25836:00000205FD515280] 50759 ms: Scavenge (reduce) 4094.8 (4099.8) -> 4094.1 (4101.1) MB, 3.1 / 0.0 ms (average mu = 0.244, current mu = 0.222) allocation failure
[25836:00000205FD515280] 50763 ms: Scavenge (reduce) 4095.0 (4100.1) -> 4094.2 (4101.1) MB, 3.0 / 0.0 ms (average mu = 0.244, current mu = 0.222) allocation failure
[25836:00000205FD515280] 50768 ms: Scavenge (reduce) 4095.1 (4103.1) -> 4094.4 (4103.3) MB, 3.1 / 0.0 ms (average mu = 0.244, current mu = 0.222) allocation failure
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF61A644BDF napi_wrap+111007
2: 00007FF61A5E8166 v8::base::CPU::has_sse+59910
3: 00007FF61A5E9066 node::OnFatalError+294
4: 00007FF61AEC217E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF61AEA6F4D v8::SharedArrayBuffer::Externalize+781
6: 00007FF61AD5008C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1516
7: 00007FF61AD5B4AA v8::internal::Heap::ProtectUnprotectedMemoryChunks+1258
8: 00007FF61AD585E9 v8::internal::Heap::PageFlagsAreConsistent+2457
9: 00007FF61AD4D181 v8::internal::Heap::CollectGarbage+2049
10: 00007FF61AD4B385 v8::internal::Heap::AllocateExternalBackingStore+1349
11: 00007FF61AD6B7FB v8::internal::Factory::NewFillerObject+203
12: 00007FF61AA9A2D1 v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=+1409
13: 00007FF61AF4B03D v8::internal::SetupIsolateDelegate::SetupHeap+465325
14: 00000264745458A8
Not sure if being out of memory is the issue but it would seem that it is since it states "heap limit allocation failed" within the following error message: