191114-2030 EST
mike4326:
Based on what you described you have a problem between the main panel breaker, and subpanel, including the subpanel bus bars.
This may be a large load right from when you start your test, or an abrupt overload at the time of tripping.
Allow some time for the tripping breaker to cool. Possibly 5 minutes, or at least 1 minute. This is also cooling time for the cable.
With all breakers in the garage off, and the main panel breaker off. Measure each main panel bus voltage to neutral.
With main panel breaker on, then using a current clamp-on meter measure the current on each hot line to the garage. If either line immediately has a large current, then trouble shooting is simple. A current around the trip point of a breaker won't immediately trip a breaker.
If both hots have a large current, and about equal, then you have a short between them. If only one is high, yhen check the neutral for the high current.
You have not indicated the cable length. At 60 Hz, 5000 pfd, and 120 V current would be about 120/500,000 = 0.2 milliampere. Thus, if you read a number of milliamperes of current you probably have a leakage problem. This alone and unchanged won't trip your breaker. However, after your time delay time this might change to a low resistance short.
This website is screwed up tonight. I loose what I am composing.
Let's assume you initially see a large current. Identify the wires where this current flows. May or may not be useful. At 240 V a 30 A breaker will trip with a load of approximately 8 ohms, 4 ohms at 120 V.
Do some measurements, and tell us what you see.
.