Persona 5 Royal Pc System Requirements

I'm getting this problem both on mac and PC. I have noticed that the ST-link on my B-L4S5I-IOT01 keeps restarting and the PC loses comms. When trying to connecvt via ST-link I get "no debug probe detected" or I get "No STM32 target found"