Well the Ryzen 7 5800X is Similar Performance as an Intel I3 13th gen, Even though its not that great, it should still be more than enough.
But that was the only thing I could think of.
Only other thing that concerns me is Corsair Vengeance, ( Bestbuy has been selling a lot of Faulty ones ) so if you got them there, that could possibly be why.
Also note, that if ram is not clocked Properly in Bios, a memory leak can sometimes be created, and it can also cause random game crashes every 2 to 3 hours. ( idk used to be a thing in the old days )
Does this happen on single player or online only? Could possibly just be outdated modem underclocking itself and temporarily stopping due to overheating?