You say you want to use four Tesla T4 simultaneously, but the nbody invocation line shows -numdevices=2 instead of -numdevices=4.
Assuming that’s just a typo, it is not clear exactly how the GPUs “drop out of the test”. GPUs suddenly becoming inoperable after brief runtime usually means one of two things: (1) Overheating (you can check temperature with `nvidia-smi), or (2) Insufficient power supply.
These devices are passively cooled. Is adequate air flow across the GPUs provides by the fans in the enclosure? Each GPU is specified for a power draw of 75W. Your system has four of them, and guessing the other system components, you will likely need a power supply unit rated for 750W for this system. What is the power rating of the PSU actually used?