Error for parallel simulation

Dear users

I am planning to run my simulation in parallel. it is an optimal control simulation; however, after solving 37 iterations it stops and show some errors as follow. do you know what the problem might be?

** Error allocating int buffer for matrix distribution
** Error allocating int buffer for matrix distribution
** Error allocating int buffer for matrix distribution
** Error allocating real buffer for matrix distribution
** Error allocating IW4 for matrix distribution
** Error allocating int buffer for matrix distribution
Erreur Mumps mpi: number -13
Erreur Mumps mpi: number -13
Erreur Mumps mpi: number -13
Erreur Mumps mpi: number -13
Erreur Mumps mpi: number -13
Erreur Mumps mpi: number -1
Fatal Erreur MUMPS_mpi Factorize
Erreur Mumps mpi: number -1
Fatal Erreur MUMPS_mpi Factorize
Fatal Erreur MUMPS_mpi Factorize
Fatal Erreur MUMPS_mpi Factorize
Fatal Erreur MUMPS_mpi Factorize
Fatal Erreur MUMPS_mpi Factorize
Fatal Erreur MUMPS_mpi Factorize
On return from DMUMPS, INFOG(1)= -13
On return from DMUMPS, INFOG(2)= 5120016
Erreur Mumps mpi: number -13
Fatal Erreur MUMPS_mpi Factorize
current line = 163 mpirank 6 / 8
current line = 163 mpirank 3 / 8
current line = 163 mpirank 0 / 8
current line = 163 mpirank 5 / 8
current line = 163 mpirank 7 / 8
current line = 163 mpirank 2 / 8
current line = 163 mpirank 1 / 8
current line = 163 mpirank 4 / 8
Exec error : MUMPS_mpi Factorize
– number :0
Instance Error 2 in DMUMPS_F77 1
Instance Error 2 in DMUMPS_F77 1
Instance Error 2 in DMUMPS_F77 1
Instance Error 2 in DMUMPS_F77 1
Instance Error 2 in DMUMPS_F77 1
Instance Error 2 in DMUMPS_F77 1
Instance Error 2 in DMUMPS_F77 1
Instance Error 2 in DMUMPS_F77 1

job aborted:
[ranks] message

[0-7] process exited without calling finalize

---- error analysis -----

[0-7] on DESKTOP-RVNDC7H
FreeFem+±mpi ended prematurely and may have crashed. exit code 0xc0000005

---- error analysis -----

Maybe a memory leak somewhere? Hard to tell without the script.