5022d flashing error


I am trying to flash an alcatel 5022D but I always get this error

Using library Brom_DLL_v7.1522.2
Searching phone in normal mode;
[connect the phone powered off to the usb cable]
Phone detected (MediaTek PreLoader USB VCOM (Android) (COM9))
Preparing to start flash mode;
Preparing to open COM9
Connecting;
Downloading DA;
Initializing;
Rid: 704de1cc84e04273b5d999f523cb74f9
Requesting baudrate change;
Done;
USB SPEED: USB_HIGH_SPEED
Switching to DA_HIGHSPEED_VCOM;

Drivers location \usb_driver\Driver_Auto_Installer\SmartPhoneDriver \x86;
If the detection fails, install manually the port from the device manager using usbvcom.inf;

DA_HIGHSPEED_VCOM (@oem15.inf,%mtk_sp_da%;DA USB VCOM Port)
TRYING TO OPEN COM10;
DEVICE INFO:
BB CHIP: MT6580_S00 [CA00, 00, 6580, FF]
HW_STORAGE_EMMC: 0x51000115 0x4D533237 0xE4410042 0xED92489A [SIZE=0x1D2880000]
IMEI1 [OTP 0000]: 000000-00-000000-0
IMEI2 [OTP 0000]: 000000-00-000000-0
PROVIDER: 5022D-2AALWE1-1
USRDATA INFO: 0x97800000 SIZE: 0x3B080000

Loading the file …
Cfg done …
ERROR: S_NOT_ENOUGH_MEMORY

Tryied 2 different pc’s. All with 8Gb RAM. Tried to increase swap memory.
Always the same error.

Can anyone help me please?