Oof, that's not a good position to be in.
First question: do you have a backup of the important data?
Then it sounds a little sus, that both drives fail at the exact same time. Could be the cable (also weird), the PSU (also little weird) or my guess, maybe the controller? Could it be that these two are on a separate one?
Did you buy all 10 drives at the same time? If so, rebuilding the array with a new drive or two might lead to more dying quickly, so I'd be very cautious.