Great suggestion, thanks for the detailed steps. This is the result:
Fatal Python error: deallocating None

Thread 0x00007fff9da36700 (most recent call first):

Thread 0x00007fff9eb78700 (most recent call first):

Thread 0x00007fff9e377700 (most recent call first):

Current thread 0x00007ffff7fd8740 (most recent call first):
  File "model.py", line 188 in <module>

Thread 1 "python" received signal SIGABRT, Aborted.
0x00007ffff760a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0  0x00007ffff760a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff760c02a in __GI_abort () at abort.c:89
#2  0x00005555555b1e4f in Py_FatalError ()
#3  0x0000555555613817 in buffered_flush.cold ()
#4  0x00005555556603aa in _PyCFunction_FastCallDict ()
#5  0x000055555566077f in _PyObject_FastCallDict ()
#6  0x00005555556eeb6f in _PyObject_CallMethodId_SizeT ()
#7  0x00005555556603aa in _PyCFunction_FastCallDict ()
#8  0x000055555566077f in _PyObject_FastCallDict ()
#9  0x00005555556f0faf in _PyObject_CallMethodId ()
#10 0x0000555555759a98 in flush_std_files ()
#11 0x00005555555b1e49 in Py_FatalError ()
#12 0x0000555555642048 in dict_dealloc ()
#13 0x00005555556f3e3e in subtype_dealloc ()
#14 0x0000555555641820 in _PyTrash_thread_destroy_chain ()
#15 0x00005555556ecfeb in fast_function ()
#16 0x00005555556f2f95 in call_function ()
#17 0x000055555571462a in _PyEval_EvalFrameDefault ()
#18 0x00005555556ed8d9 in PyEval_EvalCodeEx ()
#19 0x00005555556ee67c in PyEval_EvalCode ()
#20 0x0000555555768ce4 in run_mod ()
#21 0x00005555557690e1 in PyRun_FileExFlags ()
#22 0x00005555557692e4 in PyRun_SimpleFileExFlags ()
#23 0x000055555576cdaf in Py_Main ()
#24 0x00005555556338be in main ()
(gdb) 

Any thoughts? I’ll keep on digging on my end. This is now happening in every pair of GPUs in which I’m running a separate job (not just randomly).