In this work, we have studied the performance of the cooling system with the presence of graphene oxide (GO) and molybdenum sulfide (MoS2) nanoparticles to reduce heat stress, increase the final efficiency, and maintain the reliability of Diode and IGBT electronic module. Beyond the geometric design of micro-sprays and dimensional changes, as well as the type of cooling fluid effect, the use of nanofluids for the purpose of thermal management of electronic systems will be an interesting and effective innovation. In the simulation parameters, the dimensional ratio of micro-sprays, the rate of cooling flows, and the volume fraction of nanoparticles were investigated. According to the results, considering the spray of the BSM-4N model and the input mass rate of 0.04 kg/s, by increasing the volume fraction of nanoparticles from 0.01 to 0.05, the heat transfer of nanofluid increases, thus leading to an increase in thermal efficiency. In this paper, the thermal effects of GO nanoparticle were significantly more favorable than those of MoS2 nanoparticle. In addition, it was found that by reducing the spray nozzle using installing the blade and simultaneous use of GO nanofluid with volume fraction of 0.05, the temperature inside the module is reduced below 323 K.