I have done some tests using a different number of processors, namely 32, 40, and 64, and using "nkpprc" as a multiple of those numbers (2,4,5,8) whenever possible. However, I still get the same error message.
The error appears right after the end of the self-consistent loop. I will write down the resculog.out here, because I couldn't attach it.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
------------------------------------------------------------------------
rescuplus_scf (1.1.0-rc.1)
------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
------------------------------------------------------------------------
enter rescuplus_scf program
------------------------------------------------------------------------
............................................................
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////
This calculation is using the library Libxc 4.2.3.
Please cite Libxc as follows
Susi Lehtola, Conrad Steigemann, Micael J. T. Oliveira,
and Miguel A. L. Marques, Recent developments in Libxc -
A comprehensive library of functionals for density
functional theory, Software X 7, 1 (2018)
//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
............................................................
------------------------------------
mpi distribution info
------------------------------------
proc num: 32
....................................
grid dist
....................................
levels: x y z k
blk: 5 5 5 1
prc: 2 4 2 2
siz: 137 137 118 1
....................................
orb dist
....................................
levels: mu nu k
blk: 32 32 1
prc: 4 4 2
siz: 624 624 1
------------------------------------
atoms info
------------------------------------
# species 1
# atoms 48
# aob 624
ionic charge: 192.000
valence: 192.000
net charge: 0.000
....................................
species #1 info
....................................
atom num: 48
label: C
charge: 4.000
psp path: /mnt/beegfs/home/rafael.freire/work_vasp/rescu/graphene_bilayer/flakes/test/fixedplane/2base-ring/R30/prc-tests/prc-2/C_TM_PBE_DZP.mat
vnl L: 0 1 2 3
vnl num: 16
aob path: /mnt/beegfs/home/rafael.freire/work_vasp/rescu/graphene_bilayer/flakes/test/fixedplane/2base-ring/R30/prc-tests/prc-2/C_TM_PBE_DZP.mat
aob L: 0 0 1 1 2
aob num: 13
------------------------------------
cell info
------------------------------------
lattice vectors (Bohr)
_______________________________________________
51.74070126 0.00000000 0.00000000
0.00000000 51.73885745 0.00000000
0.00000000 0.00000000 44.59753652
_______________________________________________
boundary: 0 0 0 0 0 0
bravais: TET
grid: 137 137 118
blk: 5
prc: 2 4 2
------------------------------------
k-point info
------------------------------------
reciprocal lattice vectors (Bohr)
_______________________________________________
0.12143603 0.00000000 0.00000000
0.00000000 0.12144036 0.00000000
0.00000000 0.00000000 0.14088638
_______________________________________________
type: full
grid: 1 1 1
shift: 0.00 0.00 0.00
------------------------------------
population info
------------------------------------
type: ga
sigma (ha): 0.367E-02
valence charge: 192.000
------------------------------------
xc info
------------------------------------
functional: ( 101) gga_x_pbe
functional: ( 130) gga_c_pbe
------------------------------------------------------------------------
enter pre-processing
------------------------------------------------------------------------
computing ao-plans
computing vnl(R)
computing s(R), t(R)
computing fields
computing short-range energy
------------------------------------------------------------------------
exit pre-processing 3.726 (s)
------------------------------------------------------------------------
------------------------------------------------------------------------
enter self-consistent loop
------------------------------------------------------------------------
Iter Etot (Ha) dEtot (Ha) dRho (/ e-) Time (s)
1 -0.273842E+03 0.273842E+03 0.857323E-01 4.751
2 -0.276549E+03 0.270687E+01 0.414806E-01 4.668
3 -0.267461E+03 0.908777E+01 0.318496E-01 4.575
4 -0.271331E+03 0.386927E+01 0.120543E-01 4.554
5 -0.271584E+03 0.253645E+00 0.587174E-02 4.596
6 -0.271192E+03 0.391929E+00 0.187296E-02 4.585
7 -0.271224E+03 0.319896E-01 0.502443E-03 4.638
8 -0.271263E+03 0.385274E-01 0.131565E-03 4.580
9 -0.271265E+03 0.212958E-02 0.525151E-04 4.578
10 -0.271264E+03 0.842435E-03 0.173318E-04 4.644
11 -0.271264E+03 0.564562E-03 0.518036E-05 4.605
12 -0.271264E+03 0.546857E-04 0.190703E-05 4.631
13 -0.271264E+03 0.380528E-05 0.119331E-05 4.650
14 -0.271264E+03 0.358319E-04 0.305923E-06 4.709
15 -0.271264E+03 0.219100E-05 0.132870E-06 4.674
16 -0.271264E+03 0.332000E-05 0.717888E-07 4.701
17 -0.271264E+03 0.893639E-06 0.320133E-07 4.681
18 -0.271264E+03 0.416836E-06 0.102409E-07 4.755
19 -0.271264E+03 0.253078E-06 0.266792E-08 4.728
```
The log file stops here...