I am assuming that your external drives are each in separate drive enclosures with each enclosure connected to your hub.
Check the cable ends and each of the ports of the hub and the external drives AND between the hub and your MBP. Sometimes an accumulation of dust inside a port can prevent it from working well.
If all is well, then try to isolate the problem. My apologies since this may belaborious considering you have intermittent problems. Let me try simple diagrams, so your starting layout is:
P1c1-----D1
P2c2-----D2
so Port1 is connected by cable1 to Drive1, etc.
You might try:
1--swapping the cables going from your hub to each external drive. so:
P1c1-\ /-D1
X
P2c2--/ \-D2
Note where the disconnection problem happens, then
2--swapping the ports that each cable uses in the hub, so:
P1c2-----D1
P2c1-----D2
so essentially cable1 has been swapped with cable2.
A--if the disconnection problem stays with your first drive despite this swapping, then likely the problem is with your first drive or its enclosure. Drive enclosures are cheap enough to try swapping your first drive's enclosure. If the first drive STILL is having problems, then remember to thoroughly erase your drive before sending it to an electronic wastes dump.
B--if the disconnection problem swapped after step 1 (so your Drive2 starts to disconnect) and again swapped in step 2 (so Drive1 is again disconnecting), then the problem may be in the first port in your hub. If your hub has more than 2 ports, try using a third port and stop using the first port; if your hub only has 2 ports, try a new hub.
C--if the disconnection problem swapped after step 1 (so your Drive2 starts to disconnect) but did not change after step 2, then the problem may be with cable1. Try changing that cable with a new/different one.
D--if the disconnection problem stays with Drive1 after step 1 but switches to Drive2 after step 2, then there may be a problem with your hub. Perhaps it is limited by the electrical load it can handle, so that your first drive had most (but not all) of your disconnects may have been a coincidence. Try a new hub but pay attention to its electrical load.