Error in initializing ST-LINK device. Reason: (18) Could not verify ST device! Abort connection.
I'm having an issue using STM32CubeIDE to program my blue pill boards. I get the below error each time.

Error in final launch sequence:
Error in initializing ST-LINK device.
Reason: (18) Could not verify ST device! Abort connection.
Error in initializing ST-LINK device.
Reason: (18) Could not verify ST device! Abort connection.
The strange thing is I have no issue programming my boards using ST-Link Utility. I thought that maybe the chips on my boards were counterfeit but I've tried boards from multiple venders now.
I've looked around online and while I found some people getting the "Error in initializing ST-LINK device." message I haven't seen anyone getting "Reason: (18)".
Any help would be appreciated.
