Spark mini keeps disconnecting on Mac

So I just discovered that I could connect my spark mini to garageband on my Mac but when I do it, it stay connected for like 30 seconds and then disconnect .

It's connected via a cable, I tried two different ones and it was the same.

As anyone experienced the same problem ? and found a solution ?