I've opened a support case with ASRock as something just doesn't seem right here.
Even though I have disabled the on board GPU I'm still seeing it in device manager, if i disable then the one 1050ti with "no resources" briefly goes into a normal state but then back to Code 12 following a reboot.
At device manager >> choose show hidden device aand delete all of gpu that hidden there. And then restart windows.
I did find a hidden adaptor and deleted it, one of the 1050ti's still go back to no resources after a rescan. I cannot seem to get rid of the Intel HD Graphics despite disabling and uninstalling - it always comes back (not that I think that's the cause of the issue though)
Have you already add swap file at least 16 (i use 50 GB swap file though) like andydis said?